mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* fix(deps): update github.com/grafana/dskit digest to 10fce42 Signed-off-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com> * make generate-manifest --------- Signed-off-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com> Co-authored-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com> Co-authored-by: A. Stoewer <[email protected]>
22 lines
269 B
Go
22 lines
269 B
Go
package godeltaprof
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/klauspost/compress/gzip"
|
|
)
|
|
|
|
type gz struct {
|
|
w *gzip.Writer
|
|
}
|
|
|
|
func (g *gz) get(w io.Writer) *gzip.Writer {
|
|
if g.w == nil {
|
|
zw, _ := gzip.NewWriterLevel(w, gzip.BestSpeed)
|
|
g.w = zw
|
|
}
|
|
g.w.Reset(w)
|
|
|
|
return g.w
|
|
}
|