mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 07:06:42 +00:00
p2p/discover/v5wire: update panic message
This commit is contained in:
parent
e0e33a6522
commit
3b4fd32f94
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ func (sc *SessionCache) readNode(id enode.ID, addr string) *enode.Node {
|
||||||
// storeNewSession stores new encryption keys in the cache.
|
// storeNewSession stores new encryption keys in the cache.
|
||||||
func (sc *SessionCache) storeNewSession(id enode.ID, addr string, s *session, n *enode.Node) {
|
func (sc *SessionCache) storeNewSession(id enode.ID, addr string, s *session, n *enode.Node) {
|
||||||
if n == nil {
|
if n == nil {
|
||||||
panic("session must caches a non-nil node")
|
panic("nil node in storeNewSession")
|
||||||
}
|
}
|
||||||
s.node = n
|
s.node = n
|
||||||
sc.sessions.Add(sessionID{id, addr}, s)
|
sc.sessions.Add(sessionID{id, addr}, s)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue