Commit cf562403 authored by Kevin Atkinson's avatar Kevin Atkinson

adder: make chan size a constant

License: MIT
Signed-off-by: default avatarKevin Atkinson <k@kevina.org>
parent b7eae36f
......@@ -40,6 +40,8 @@ const (
fstoreCacheOptionName = "fscache"
)
const adderOutChanSize = 8
var AddCmd = &cmds.Command{
Helptext: cmds.HelpText{
Tagline: "Add a file or directory to ipfs.",
......@@ -208,7 +210,7 @@ You can now refer to the added file in a gateway, like so:
return
}
outChan := make(chan interface{}, 8)
outChan := make(chan interface{}, adderOutChanSize)
res.SetOutput((<-chan interface{})(outChan))
fileAdder.Out = outChan
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment