MCPcopy
hub / github.com/grafana/dskit / Pool

Struct Pool

dns/miekgdns/resolver.go:366–370  ·  view source on GitHub ↗

Pool is a pool of DNS connections for a single DNS server.

Source from the content-addressed store, hash-verified

364
365// Pool is a pool of DNS connections for a single DNS server.
366type Pool struct {
367 mtx sync.RWMutex
368 conns chan *dns.Conn
369 closed bool
370}
371
372// NewPool creates a new DNS connection Pool, keeping up to maxConns open.
373func NewPool(maxConns uint) *Pool {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected