remove unnecessary flush, and buffer output channel

This commit is contained in:
Jeromy 2015-05-18 14:55:58 -07:00
parent ae92955728
commit a67af7d9c1

View File

@ -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
}