Skip to content

Commit 52c6ef3

Browse files
committed
server: Fix timestamp when msg is nil
1 parent b48c561 commit 52c6ef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/server/bmp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ func (b *bmpClient) loop() {
180180
for _, path := range pathList {
181181
for _, u := range table.CreateUpdateMsgFromPaths([]*table.Path{path}) {
182182
payload, _ := u.Serialize()
183-
if err := write(bmpPeerRoute(bmp.BMP_PEER_TYPE_GLOBAL, msg.PostPolicy, 0, true, info, msg.Timestamp.Unix(), payload)); err != nil {
183+
if err := write(bmpPeerRoute(bmp.BMP_PEER_TYPE_GLOBAL, msg.PostPolicy, 0, true, info, path.GetTimestamp().Unix(), payload)); err != nil {
184184
return false
185185
}
186186
}

0 commit comments

Comments
 (0)