mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-25 10:18:59 +02:00
refactor
This commit is contained in:
@@ -17,7 +17,7 @@ type (
|
||||
zerolog.Logger
|
||||
|
||||
host string
|
||||
client D.Client
|
||||
client *D.SharedClient
|
||||
clientOwned bool
|
||||
}
|
||||
DockerListOptions = docker_events.ListOptions
|
||||
@@ -62,7 +62,7 @@ func NewDockerWatcher(host string) DockerWatcher {
|
||||
}
|
||||
}
|
||||
|
||||
func NewDockerWatcherWithClient(client D.Client) DockerWatcher {
|
||||
func NewDockerWatcherWithClient(client *D.SharedClient) DockerWatcher {
|
||||
return DockerWatcher{
|
||||
client: client,
|
||||
Logger: logger.With().
|
||||
|
||||
Reference in New Issue
Block a user