MCPcopy Create free account
hub / github.com/cortexproject/cortex / Close

Method Close

pkg/util/grpcencoding/zstd/zstd.go:64–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64func (z *zstdWriteCloser) Close() error {
65 compressed := z.enc.EncodeAll(z.buf.Bytes(), nil)
66 _, err := io.Copy(z.writer, bytes.NewReader(compressed))
67 return err
68}
69
70func (c *compressor) Decompress(r io.Reader) (io.Reader, error) {
71 compressed, err := io.ReadAll(r)

Callers

nothing calls this directly

Calls 2

BytesMethod · 0.65
CopyMethod · 0.45

Tested by

no test coverage detected