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
a0bd29d5
Commit
a0bd29d5
authored
Nov 18, 2014
by
Matt Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core/commands2: Fixed swarm command for new arguments API
parent
0709621a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
core/commands2/swarm.go
core/commands2/swarm.go
+1
-5
No files found.
core/commands2/swarm.go
View file @
a0bd29d5
...
@@ -6,7 +6,6 @@ import (
...
@@ -6,7 +6,6 @@ import (
"path"
"path"
cmds
"github.com/jbenet/go-ipfs/commands"
cmds
"github.com/jbenet/go-ipfs/commands"
internal
"github.com/jbenet/go-ipfs/core/commands2/internal"
peer
"github.com/jbenet/go-ipfs/peer"
peer
"github.com/jbenet/go-ipfs/peer"
errors
"github.com/jbenet/go-ipfs/util/debugerror"
errors
"github.com/jbenet/go-ipfs/util/debugerror"
...
@@ -94,10 +93,7 @@ ipfs swarm connect /ip4/104.131.131.82/tcp/4001/QmaCpDMGvV2BGHeYERUEnRQAwe3N8Szb
...
@@ -94,10 +93,7 @@ ipfs swarm connect /ip4/104.131.131.82/tcp/4001/QmaCpDMGvV2BGHeYERUEnRQAwe3N8Szb
return
nil
,
err
return
nil
,
err
}
}
addrs
,
err
:=
internal
.
CastToStrings
(
req
.
Arguments
())
addrs
:=
req
.
Arguments
()
if
err
!=
nil
{
return
nil
,
cmds
.
ClientError
(
"Improperly formatted peer addresses: "
+
err
.
Error
())
}
if
n
.
Network
==
nil
{
if
n
.
Network
==
nil
{
return
nil
,
errNotOnline
return
nil
,
errNotOnline
...
...
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