mirror of
https://github.com/yusing/godoxy.git
synced 2025-07-05 14:24:02 +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
|
refCount uint32
|
||||||
closedOn int64
|
closedOn int64
|
||||||
|
|
||||||
|
key string
|
||||||
addr string
|
addr string
|
||||||
dial func(ctx context.Context) (net.Conn, error)
|
dial func(ctx context.Context) (net.Conn, error)
|
||||||
}
|
}
|
||||||
|
@ -179,6 +180,7 @@ func NewClient(host string) (*SharedClient, error) {
|
||||||
Client: client,
|
Client: client,
|
||||||
refCount: 1,
|
refCount: 1,
|
||||||
addr: addr,
|
addr: addr,
|
||||||
|
key: host,
|
||||||
dial: dial,
|
dial: dial,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -197,7 +199,7 @@ func NewClient(host string) (*SharedClient, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *SharedClient) Key() string {
|
func (c *SharedClient) Key() string {
|
||||||
return c.DaemonHost()
|
return c.key
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *SharedClient) Address() string {
|
func (c *SharedClient) Address() string {
|
||||||
|
|
Loading…
Add table
Reference in a new issue