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

Function init

internal/compressions/writer_pool_gzip.go:12–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10var sharedGzipWriterPool *WriterPool
11
12func init() {
13 if !teaconst.IsMain {
14 return
15 }
16
17 sharedGzipWriterPool = NewWriterPool(CalculatePoolSize(), func(writer io.Writer, level int) (Writer, error) {
18 return newGzipWriter(writer)
19 })
20}

Callers

nothing calls this directly

Calls 3

NewWriterPoolFunction · 0.85
CalculatePoolSizeFunction · 0.85
newGzipWriterFunction · 0.85

Tested by

no test coverage detected