MCPcopy
hub / github.com/AdguardTeam/dnsproxy / queue

Method queue

proxy/pending.go:21–21  ·  view source on GitHub ↗

queue is called for each request. It returns false if there are no identical requests in progress. Otherwise it blocks until the first request is completed and returns the error that occurred during its resolution.

(ctx context.Context, dctx *DNSContext)

Source from the content-addressed store, hash-verified

19 // request is completed and returns the error that occurred during its
20 // resolution.
21 queue(ctx context.Context, dctx *DNSContext) (loaded bool, err error)
22
23 // done must be called after the request is completed, if queue returned
24 // false for it.

Callers 1

ResolveMethod · 0.65

Implementers 2

defaultPendingRequestsproxy/pending.go
emptyPendingRequestsproxy/pending.go

Calls

no outgoing calls

Tested by

no test coverage detected