Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ import (
"golang.org/x/time/rate"

"github.com/libp2p/go-libp2p"
"github.com/libp2p/go-libp2p-circuit"
"github.com/libp2p/go-libp2p-connmgr"
"github.com/libp2p/go-libp2p-core"
relay "github.com/libp2p/go-libp2p-circuit"
connmgr "github.com/libp2p/go-libp2p-connmgr"
core "github.com/libp2p/go-libp2p-core"
"github.com/libp2p/go-libp2p-core/crypto"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/libp2p/go-libp2p-core/pnet"
"github.com/libp2p/go-libp2p-core/protocol"
"github.com/libp2p/go-libp2p-discovery"
"github.com/libp2p/go-libp2p-kad-dht"
"github.com/libp2p/go-libp2p-pubsub"
"github.com/libp2p/go-libp2p-secio"
discovery "github.com/libp2p/go-libp2p-discovery"
dht "github.com/libp2p/go-libp2p-kad-dht"
pubsub "github.com/libp2p/go-libp2p-pubsub"
secio "github.com/libp2p/go-libp2p-secio"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why these? b/c go fmt?

Copy link
Member Author

@Liuhaai Liuhaai Apr 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For example, secio is package name in github.com/libp2p/go-libp2p-secio

tptu "github.com/libp2p/go-libp2p-transport-upgrader"
yamux "github.com/libp2p/go-libp2p-yamux"
"github.com/libp2p/go-tcp-transport"
Expand Down Expand Up @@ -88,7 +88,7 @@ var (
Gossip: false,
ConnectTimeout: time.Minute,
MasterKey: "",
Relay: "disable",
Relay: "nat",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how's the test result? does it help connect to private IP?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to be tested

ConnLowWater: 200,
ConnHighWater: 500,
RateLimiterLRUSize: 1000,
Expand Down