MCPcopy
hub / github.com/dragonflyoss/dragonfly / pool

Struct pool

pkg/rpc/dfdaemon/client/client_v2.go:56–65  ·  view source on GitHub ↗

pool is the pool for managing v2 version of the dfdaemon client.

Source from the content-addressed store, hash-verified

54
55// pool is the pool for managing v2 version of the dfdaemon client.
56type pool struct {
57 // pool is a map of client connections for reusing.
58 *sync.Map
59
60 // sf is the singleflight instance for concurrent requests.
61 sf *singleflight.Group
62
63 // done is a channel to signal the manager is done.
64 done chan struct{}
65}
66
67// GetV2Pool creates a new pool instance.
68func GetV2Pool() Pool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected