OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix log (#388)
[bytom/vapor.git]
/
p2p
/
peer.go
diff --git
a/p2p/peer.go
b/p2p/peer.go
index
e239e37
..
856d1e9
100644
(file)
--- a/
p2p/peer.go
+++ b/
p2p/peer.go
@@
-44,7
+44,7
@@
func DefaultPeerConfig(config *cfg.P2PConfig) *PeerConfig {
ProxyAddress: config.ProxyAddress,
ProxyUsername: config.ProxyUsername,
ProxyPassword: config.ProxyPassword,
ProxyAddress: config.ProxyAddress,
ProxyUsername: config.ProxyUsername,
ProxyPassword: config.ProxyPassword,
- MConfig: connection.DefaultMConnConfig(),
+ MConfig: connection.DefaultMConnConfig(
config.Compression
),
}
}
}
}
@@
-239,7
+239,7
@@
func (p *Peer) TrySend(chID byte, msg interface{}) bool {
"peer": p.Addr(),
"msg": msg,
"type": reflect.TypeOf(msg),
"peer": p.Addr(),
"msg": msg,
"type": reflect.TypeOf(msg),
- }).
Info
("send message to peer")
+ }).
Debug
("send message to peer")
return p.mconn.TrySend(chID, msg)
}
return p.mconn.TrySend(chID, msg)
}