MCPcopy Create free account
hub / github.com/Azure/peerd / Copy

Method Copy

pkg/context/context.go:67–70  ·  view source on GitHub ↗

Copy creates a copy of the context that can be safely used outside the request's scope.

()

Source from the content-addressed store, hash-verified

65
66// Copy creates a copy of the context that can be safely used outside the request's scope.
67func (c Context) Copy() Context {
68 cc := c.Context.Copy()
69 return Context{Context: cc}
70}
71
72// IsRequestFromAPeer indicates if the current request is from a peer.
73func IsRequestFromAPeer(c Context) bool {

Callers 4

TestContextCopFunction · 0.80
NewReaderFunction · 0.80
downloadSASURLFunction · 0.80
ScannerFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestContextCopFunction · 0.64