diff options
author | Sebastiaan van Stijn <github@gone.nl> | 2022-09-21 12:20:13 +0200 |
---|---|---|
committer | Sebastiaan van Stijn <github@gone.nl> | 2022-09-21 17:38:45 +0200 |
commit | 511a909ae6687b22f4bf0c6f08fa8392852e61b0 (patch) | |
tree | d66431e4a414772b44fab03c3cfd7015a1272a94 /daemon/daemon.go | |
parent | f53692a632d2bb11511a45e4fd7885a86ee2c0b7 (diff) | |
download | docker-511a909ae6687b22f4bf0c6f08fa8392852e61b0.tar.gz |
container: remove ViewDB and View interfaces, use concrete types
These interfaces were added in aacddda89df05b88a6d15fb33c42864760385ab2, with
no clear motivation, other than "Also hide ViewDB behind an interface".
This patch removes the interface in favor of using a concrete implementation;
There's currently only one implementation of this interface, and if we would
decide to change to an alternative implementation, we could define relevant
interfaces on the receiver side.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'daemon/daemon.go')
-rw-r--r-- | daemon/daemon.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/daemon.go b/daemon/daemon.go index 10230b1580..bb38689fc1 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -73,7 +73,7 @@ type Daemon struct { id string repository string containers container.Store - containersReplica container.ViewDB + containersReplica *container.ViewDB execCommands *container.ExecStore imageService ImageService configStore *config.Config |