fix: add cursors to store queries

This commit is contained in:
Richard Ramos 2023-01-27 14:58:14 -04:00 committed by RichΛrd
parent cccea5f14b
commit ddfe16f56f
1 changed files with 1 additions and 1 deletions

View File

@ -584,7 +584,7 @@ func (m *Messenger) processMailserverBatch(batch MailserverBatch) error {
}
ctx, cancel := context.WithTimeout(m.ctx, mailserverRequestTimeout)
cursor, storeCursor, err := m.transport.SendMessagesRequestForTopics(ctx, mailserverID, batch.From, batch.To, nil, nil, w.topics, true)
cursor, storeCursor, err := m.transport.SendMessagesRequestForTopics(ctx, mailserverID, batch.From, batch.To, w.cursor, w.storeCursor, w.topics, true)
if err != nil {
logger.Error("failed to send request", zap.Error(err))
wg.Done()