From c2e6320953b195b1757b0e8ae3b43f945388be98 Mon Sep 17 00:00:00 2001 From: kaichao Date: Wed, 7 Aug 2024 10:24:08 +0800 Subject: [PATCH] chore: refactor message sent check method (#1184) --- waku/v2/api/publish/message_check.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waku/v2/api/publish/message_check.go b/waku/v2/api/publish/message_check.go index ef5148bd..a7b16a57 100644 --- a/waku/v2/api/publish/message_check.go +++ b/waku/v2/api/publish/message_check.go @@ -125,8 +125,8 @@ func (m *MessageSentCheck) SetStorePeerID(peerID peer.ID) { m.storePeerID = peerID } -// CheckIfMessagesStored checks if the tracked outgoing messages are stored periodically -func (m *MessageSentCheck) CheckIfMessagesStored() { +// Start checks if the tracked outgoing messages are stored periodically +func (m *MessageSentCheck) Start() { ticker := time.NewTicker(m.hashQueryInterval) defer ticker.Stop() for {