refactor: remove unused parameter from `handleArchiveMessages`

This commit is contained in:
Patryk Osmaczko 2023-07-07 10:39:52 +02:00 committed by osmaczko
parent 5bb787fadb
commit cd1ba1abaa
2 changed files with 2 additions and 2 deletions

View File

@ -2558,7 +2558,7 @@ importMessageArchivesLoop:
continue importMessageArchivesLoop
}
response, err := m.handleArchiveMessages(messagesChunk, communityID)
response, err := m.handleArchiveMessages(messagesChunk)
if err != nil {
m.communitiesManager.LogStdout("failed to handle archive messages", zap.Error(err))
continue importMessageArchivesLoop

View File

@ -1306,7 +1306,7 @@ func (m *Messenger) downloadAndImportHistoryArchives(id types.HexBytes, magnetli
m.config.messengerSignalsHandler.DownloadingHistoryArchivesFinished(types.EncodeHex(id))
}
func (m *Messenger) handleArchiveMessages(archiveMessages []*protobuf.WakuMessage, id types.HexBytes) (*MessengerResponse, error) {
func (m *Messenger) handleArchiveMessages(archiveMessages []*protobuf.WakuMessage) (*MessengerResponse, error) {
messagesToHandle := make(map[transport.Filter][]*types.Message)