Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
cf562403
Commit
cf562403
authored
Mar 05, 2017
by
Kevin Atkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adder: make chan size a constant
License: MIT Signed-off-by:
Kevin Atkinson
<
k@kevina.org
>
parent
b7eae36f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
core/commands/add.go
core/commands/add.go
+3
-1
No files found.
core/commands/add.go
View file @
cf562403
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment