mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-04 07:48:00 +08:00
remove unnecessary flush, and buffer output channel
This commit is contained in:
parent
ae92955728
commit
a67af7d9c1
@ -91,7 +91,7 @@ remains to be implemented.
|
||||
progress, _, _ := req.Option(progressOptionName).Bool()
|
||||
wrap, _, _ := req.Option(wrapOptionName).Bool()
|
||||
|
||||
outChan := make(chan interface{})
|
||||
outChan := make(chan interface{}, 8)
|
||||
res.SetOutput((<-chan interface{})(outChan))
|
||||
|
||||
go func() {
|
||||
@ -219,11 +219,6 @@ func add(n *core.IpfsNode, reader io.Reader) (*dag.Node, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
err = n.Pinning.Flush()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return node, nil
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user