MCPcopy
hub / github.com/elastic/go-elasticsearch / Close

Method Close

elasticsearch.go:839–842  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

837}
838
839func (a *autoDrainingReader) Close() error {
840 _, _ = io.Copy(io.Discard, io.LimitReader(a.ReadCloser, autoDrainingMaxBytes))
841 return a.ReadCloser.Close()
842}

Callers 2

TestAutoDrainingReaderFunction · 0.95

Calls 1

CloseMethod · 0.65

Tested by 2

TestAutoDrainingReaderFunction · 0.76