mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-10 18:57:57 +08:00
Add comment about reading until channel closed
This commit is contained in:
parent
07aa00dfa6
commit
fb55f09882
@ -219,6 +219,9 @@ func (p *pinInfo) Err() error {
|
||||
}
|
||||
|
||||
// pinLsAll is an internal function for returning a list of pins
|
||||
//
|
||||
// The caller must keep reading results until the channel is closed to prevent
|
||||
// leaking the goroutine that is fetching pins.
|
||||
func (api *PinAPI) pinLsAll(ctx context.Context, typeStr string) <-chan coreiface.Pin {
|
||||
out := make(chan coreiface.Pin, 1)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user