summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/bmp.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/server/bmp.go')
-rw-r--r--pkg/server/bmp.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/server/bmp.go b/pkg/server/bmp.go
index f96143c7..22be03ae 100644
--- a/pkg/server/bmp.go
+++ b/pkg/server/bmp.go
@@ -192,10 +192,8 @@ func (b *bmpClient) loop() {
}
}
}
- } else {
- if err := write(bmpPeerRoute(bmp.BMP_PEER_TYPE_GLOBAL, msg.PostPolicy, 0, msg.FourBytesAs, info, msg.Timestamp.Unix(), msg.Payload)); err != nil {
- return false
- }
+ } else if err := write(bmpPeerRoute(bmp.BMP_PEER_TYPE_GLOBAL, msg.PostPolicy, 0, msg.FourBytesAs, info, msg.Timestamp.Unix(), msg.Payload)); err != nil {
+ return false
}
case *watchEventBestPath:
info := &table.PeerInfo{