mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-26 19:11:08 +01:00
refactor: code refactor and improved context and error handling
This commit is contained in:
@@ -190,7 +190,7 @@ func NewClient(host string) (*SharedClient, error) {
|
||||
c.dial = client.Dialer()
|
||||
}
|
||||
if c.addr == "" {
|
||||
c.addr = c.Client.DaemonHost()
|
||||
c.addr = c.DaemonHost()
|
||||
}
|
||||
|
||||
defer log.Debug().Str("host", host).Msg("docker client initialized")
|
||||
|
||||
Reference in New Issue
Block a user