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

Function init

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

NewReaderPoolFunction · 0.85
CalculatePoolSizeFunction · 0.85
newBrotliReaderFunction · 0.85

Tested by

no test coverage detected