diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-09-18 11:36:35 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2023-09-19 09:48:58 +0300 |
commit | aa8dfbd189afbde91dccbd779bf367c7cf50fc05 (patch) | |
tree | d0c88d2960fe46cf443a2796fe99ef17437127d1 /internal/command/command.go | |
parent | 1724766e9e11c60992a07c023757b6935a74114e (diff) |
service: Simplify injection of dependencies for SmartHTTP server
While we already have a `service.Dependencies` type around for quite a
long time, we still pass in dependencies explicitly when constructing
the actual server. This makes it harder than necessary to make a server
require more dependencies as you will have to adjust all callsites where
the server is currently getting constructed.
Simplify the code to instead inject the `service.Dependencies` type into
the server directly. This will allow us to propagate dependencies more
readily in the future.
Diffstat (limited to 'internal/command/command.go')
0 files changed, 0 insertions, 0 deletions