mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-19 20:32:35 +02:00
fix: docker clients not caching properly
This commit is contained in:
parent
81a6ef9745
commit
d7f8359f27
1 changed files with 3 additions and 1 deletions
|
@ -27,6 +27,7 @@ type (
|
|||
refCount uint32
|
||||
closedOn int64
|
||||
|
||||
key string
|
||||
addr string
|
||||
dial func(ctx context.Context) (net.Conn, error)
|
||||
}
|
||||
|
@ -179,6 +180,7 @@ func NewClient(host string) (*SharedClient, error) {
|
|||
Client: client,
|
||||
refCount: 1,
|
||||
addr: addr,
|
||||
key: host,
|
||||
dial: dial,
|
||||
}
|
||||
|
||||
|
@ -197,7 +199,7 @@ func NewClient(host string) (*SharedClient, error) {
|
|||
}
|
||||
|
||||
func (c *SharedClient) Key() string {
|
||||
return c.DaemonHost()
|
||||
return c.key
|
||||
}
|
||||
|
||||
func (c *SharedClient) Address() string {
|
||||
|
|
Loading…
Add table
Reference in a new issue