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

Function init

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

Source from the content-addressed store, hash-verified

10var sharedZSTDReaderPool *ReaderPool
11
12func init() {
13 if !teaconst.IsMain {
14 return
15 }
16
17 sharedZSTDReaderPool = NewReaderPool(CalculatePoolSize(), func(reader io.Reader) (Reader, error) {
18 return newZSTDReader(reader)
19 })
20}

Callers

nothing calls this directly

Calls 3

NewReaderPoolFunction · 0.85
CalculatePoolSizeFunction · 0.85
newZSTDReaderFunction · 0.85

Tested by

no test coverage detected