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
c9ea7288
Commit
c9ea7288
authored
Apr 17, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: remove duplicate import
License: MIT Signed-off-by:
Steven Allen
<
steven@stebalien.com
>
parent
19cc7c92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
core/node/libp2p.go
core/node/libp2p.go
+1
-2
No files found.
core/node/libp2p.go
View file @
c9ea7288
...
...
@@ -40,7 +40,6 @@ import (
ma
"github.com/multiformats/go-multiaddr"
mplex
"github.com/whyrusleeping/go-smux-multiplex"
yamux
"github.com/whyrusleeping/go-smux-yamux"
"github.com/whyrusleeping/multiaddr-filter"
mamask
"github.com/whyrusleeping/multiaddr-filter"
"go.uber.org/fx"
...
...
@@ -98,7 +97,7 @@ func Peerstore(id peer.ID, sk crypto.PrivKey) peerstore.Peerstore {
func
P2PAddrFilters
(
cfg
*
config
.
Config
)
(
opts
Libp2pOpts
,
err
error
)
{
for
_
,
s
:=
range
cfg
.
Swarm
.
AddrFilters
{
f
,
err
:=
mask
.
NewMask
(
s
)
f
,
err
:=
ma
mask
.
NewMask
(
s
)
if
err
!=
nil
{
return
opts
,
fmt
.
Errorf
(
"incorrectly formatted address filter in config: %s"
,
s
)
}
...
...
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