MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Put

Method Put

internal/compressions/reader_pool.go:53–63  ·  view source on GitHub ↗
(reader Reader)

Source from the content-addressed store, hash-verified

51}
52
53func (this *ReaderPool) Put(reader Reader) {
54 if reader.IncreaseHit() > maxReadHits {
55 // do nothing to discard it
56 return
57 }
58
59 select {
60 case this.c <- reader:
61 default:
62 }
63}

Callers

nothing calls this directly

Calls 1

IncreaseHitMethod · 0.65

Tested by

no test coverage detected