From 8ef36935f1dfe8cd1adbeaa090fa9465d38c5ec2 Mon Sep 17 00:00:00 2001 From: kaichaosun Date: Wed, 7 Aug 2024 10:01:04 +0800 Subject: [PATCH] chore: refactor message sent check method --- 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 ef5148bdb..a7b16a571 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 {