remove prefix logger
This commit is contained in:
parent
bb4ad4494b
commit
95f2f8cb75
|
@ -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!")
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue