chore: refactor message sent check method (#1184)

This commit is contained in:
kaichao 2024-08-07 10:24:08 +08:00 committed by GitHub
parent 4f1d692413
commit c2e6320953
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -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 {