Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
839
func
(a *autoDrainingReader) Close() error {
840
_, _ = io.Copy(io.Discard, io.LimitReader(a.ReadCloser, autoDrainingMaxBytes))
841
return
a.ReadCloser.Close()
842
}
Callers
2
TestAutoDrainingReader
Function · 0.95
TestAutoDrainingReaderDrainsOnClose
Function · 0.95
Calls
1
Close
Method · 0.65
Tested by
2
TestAutoDrainingReader
Function · 0.76
TestAutoDrainingReaderDrainsOnClose
Function · 0.76