mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
The WatchStream field was set as configuration option in cmd/dockerd, but not configurable. Move creating the stream to the constructor, and remove the configuration option. This field was introduced in59d45c384a, at which time the cmd/dockerd code needed direct access to the stream, but a later refactor in05346355dbintroduced an accessor (GetWatchStream) for this. The cluster.Config struct is only used internally, it's unlikely for any external project to use this, so skipping deprecation. With this change, the cmd/dockerd package no longer has a direct import of swarmkit. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>