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

Method Put

internal/utils/bfs/gzip_reader_pool.go:52–58  ·  view source on GitHub ↗
(reader *gzip.Reader)

Source from the content-addressed store, hash-verified

50}
51
52func (this *GzipReaderPool) Put(reader *gzip.Reader) {
53 select {
54 case this.getC() <- reader:
55 default:
56 // 不需要close,因为已经在使用的时候调用了
57 }
58}
59
60func (this *GzipReaderPool) getC() chan *gzip.Reader {
61 var procId = percpu.GetProcId()

Callers

nothing calls this directly

Calls 1

getCMethod · 0.95

Tested by

no test coverage detected