refactor: remove unused parameter from `handleArchiveMessages`
This commit is contained in:
parent
5bb787fadb
commit
cd1ba1abaa
|
@ -2558,7 +2558,7 @@ importMessageArchivesLoop:
|
||||||
continue importMessageArchivesLoop
|
continue importMessageArchivesLoop
|
||||||
}
|
}
|
||||||
|
|
||||||
response, err := m.handleArchiveMessages(messagesChunk, communityID)
|
response, err := m.handleArchiveMessages(messagesChunk)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
m.communitiesManager.LogStdout("failed to handle archive messages", zap.Error(err))
|
m.communitiesManager.LogStdout("failed to handle archive messages", zap.Error(err))
|
||||||
continue importMessageArchivesLoop
|
continue importMessageArchivesLoop
|
||||||
|
|
|
@ -1306,7 +1306,7 @@ func (m *Messenger) downloadAndImportHistoryArchives(id types.HexBytes, magnetli
|
||||||
m.config.messengerSignalsHandler.DownloadingHistoryArchivesFinished(types.EncodeHex(id))
|
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)
|
messagesToHandle := make(map[transport.Filter][]*types.Message)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue