test: NoticeHandler observer notified

This commit is contained in:
Jay
2026-06-03 15:19:42 -04:00
parent 9d4873f8d4
commit cf4a2d380a
2 changed files with 17 additions and 4 deletions
+6 -1
View File
@@ -60,11 +60,16 @@ func (h *NoticeHandler) route() {
if err != nil {
continue
}
now := time.Now()
h.notices <- Notice{
PeerID: msg.ID,
Message: message,
Timestamp: time.Now(),
Timestamp: now,
}
h.envoy.Observer().Record(msg.ID, NoticeReceived{
Message: message,
At: now,
})
}
}
}