log unknown peer received in topology gossip
This commit is contained in:
1 parent
de45a85162
commit
65d0c8b4ce
4 files changed
+8
-6
No files matched your search
+2
-1
@@ -372,10 +372,11 @@ func (router *Router) Gossip() []byte {
|
||||
// or nil if nothing in the received message was new
|
||||
func (router *Router) OnGossip(buf []byte) ([]byte, error) {
|
||||
newUpdate, err := router.Peers.ApplyUpdate(buf)
|
||||
if _, ok := err.(UnknownPeersError); err != nil && ok {
|
||||
if _, ok := err.(UnknownPeerError); err != nil && ok {
|
||||
// That update contained a peer we didn't know about; we
|
||||
// ignore this; eventually we should receive an update
|
||||
// containing a complete topology.
|
||||
log.Println("topology gossip contained", err)
|
||||
return nil, nil
|
||||
}
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user