mirror of
https://github.com/ipfs/kubo.git
synced 2025-06-30 09:59:13 +08:00
adder: make chan size a constant
License: MIT Signed-off-by: Kevin Atkinson <k@kevina.org>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user