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

Method Put

internal/utils/bfs/gzip_writer_pool.go:49–55  ·  view source on GitHub ↗
(writer *gzip.Writer)

Source from the content-addressed store, hash-verified

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

Callers 2

FileHeaderUnsafeMethod · 0.45
EncodeMethod · 0.45

Calls 1

getCMethod · 0.95

Tested by

no test coverage detected