MCPcopy Index your code
hub / github.com/ContentSquare/chproxy / toString

Function toString

proxy.go:569–578  ·  view source on GitHub ↗
(stream io.Reader)

Source from the content-addressed store, hash-verified

567}
568
569func toString(stream io.Reader) (string, error) {
570 buf := new(bytes.Buffer)
571
572 _, err := buf.ReadFrom(stream)
573 if err != nil {
574 return "", err
575 }
576
577 return bytes.NewBuffer(buf.Bytes()).String(), nil
578}
579
580// clickhouseRecoverableStatusCodes set of recoverable http responses' status codes from Clickhouse.
581// When such happens we mark transaction as completed and let concurrent query to hit another Clickhouse shard.

Callers 1

serveFromCacheMethod · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected