This repository has been archived on 2026-07-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
GoEdgeNode/internal/compressions/reader_pool_brotli.go
T
2024-07-27 15:42:50 +08:00

23 lines
398 B
Go

// Copyright 2022 GoEdge goedge.cdn@gmail.com. All rights reserved.
package compressions
import (
"io"
teaconst "github.com/TeaOSLab/EdgeNode/internal/const"
)
var sharedBrotliReaderPool *ReaderPool
func init() {
if !teaconst.IsMain {
return
}
sharedBrotliReaderPool = NewReaderPool(CalculatePoolSize(), func(reader io.Reader) (Reader, error) {
return newBrotliReader(reader)
})
}