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

Method Put

internal/compressions/writer_pool.go:71–82  ·  view source on GitHub ↗
(writer Writer)

Source from the content-addressed store, hash-verified

69}
70
71func (this *WriterPool) Put(writer Writer) {
72 if writer.IncreaseHit() > maxWriterHits {
73 // do nothing to discard it
74 return
75 }
76
77 select {
78 case this.c <- writer:
79 default:
80 isBusy = true
81 }
82}

Callers 2

FinishMethod · 0.45
FinishMethod · 0.45

Calls 1

IncreaseHitMethod · 0.65

Tested by

no test coverage detected