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
eea6921f
Commit
eea6921f
authored
9 years ago
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1242 from ipfs/perf/add
remove unnecessary flush, and buffer output channel
parents
9c4135fe
a67af7d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
core/commands/add.go
core/commands/add.go
+1
-6
No files found.
core/commands/add.go
View file @
eea6921f
...
...
@@ -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
}
...
...
This diff is collapsed.
Click to expand it.
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