Revert "Make message for UnknownPeersError more meaningful"
This reverts commit 752cfdcb67.
This commit is contained in:
1 parent
a25ccbb261
commit
4e7aa85de0
1 file changed
+1
-1
+1
-1
@@ -481,7 +481,7 @@ func (conn *LocalConnection) receiveTCP(decoder *gob.Decoder, usingPassword bool
|
|||||||
} else if msg[0] == ProtocolUpdate {
|
} else if msg[0] == ProtocolUpdate {
|
||||||
newUpdate, err := conn.Router.Peers.ApplyUpdate(msg[1:], conn.Router)
|
newUpdate, err := conn.Router.Peers.ApplyUpdate(msg[1:], conn.Router)
|
||||||
if _, ok := err.(UnknownPeersError); err != nil && ok {
|
if _, ok := err.(UnknownPeersError); err != nil && ok {
|
||||||
log.Println("Update from", conn.RemoteTCPAddr(), "contained unknown peer; requesting full update")
|
checkWarn(err)
|
||||||
conn.SendTCP(ProtocolFetchAllByte)
|
conn.SendTCP(ProtocolFetchAllByte)
|
||||||
continue
|
continue
|
||||||
} else if conn.CheckFatal(err) != nil {
|
} else if conn.CheckFatal(err) != nil {
|
||||||
|
|||||||
Reference in new issue
Block a user