go-graphite / go-carbon

Golang implementation of Graphite/Carbon server with classic architecture: Agent -> Cache -> Persister
MIT License
801 stars 126 forks source link

Limit streaming channel size dynamically for gRPC render #526

Closed emadolsky closed 1 year ago

emadolsky commented 1 year ago

if number of files in the expanded globs is smaller than that maximum, it makes sense to initiate chan with that size instead of maximum.