Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
95f2f8cb
Commit
95f2f8cb
authored
Jan 24, 2015
by
Brian Tiger Chow
Browse files
remove prefix logger
parent
bb4ad449
Changes
2
Hide whitespace changes
Inline
Side-by-side
net/swarm/swarm_dial.go
View file @
95f2f8cb
...
...
@@ -179,7 +179,6 @@ func (db *dialbackoff) Clear(p peer.ID) {
// This allows us to use various transport protocols, do NAT traversal/relay,
// etc. to achive connection.
func
(
s
*
Swarm
)
Dial
(
ctx
context
.
Context
,
p
peer
.
ID
)
(
*
Conn
,
error
)
{
log
:=
log
.
Prefix
(
"swarm %s dialing %s"
,
s
.
local
,
p
)
if
p
==
s
.
local
{
return
nil
,
errors
.
New
(
"Attempted connection to self!"
)
}
...
...
peer/queue/sync.go
View file @
95f2f8cb
...
...
@@ -24,8 +24,6 @@ func NewChanQueue(ctx context.Context, pq PeerQueue) *ChanQueue {
}
func
(
cq
*
ChanQueue
)
process
(
ctx
context
.
Context
)
{
log
:=
log
.
Prefix
(
"<ChanQueue %p>"
,
cq
)
// construct the channels here to be able to use them bidirectionally
enqChan
:=
make
(
chan
peer
.
ID
)
deqChan
:=
make
(
chan
peer
.
ID
)
...
...
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