Update wakuv2/missing_messages.go
Co-authored-by: Igor Sirotin <sirotin@status.im>
This commit is contained in:
parent
1915ab9000
commit
34112a9c4c
|
@ -241,8 +241,7 @@ func (w *Waku) fetchMessagesBatch(missingHistoryRequest TopicInterest, batchFrom
|
|||
// Split into batches
|
||||
for i := 0; i < len(missingHashes); i += maxHashQueryLength {
|
||||
j := i + maxHashQueryLength
|
||||
if j > len(missingHashes) {
|
||||
j = len(missingHashes)
|
||||
j = math.Min(j, len(missingHashes))
|
||||
}
|
||||
|
||||
wg.Add(1)
|
||||
|
|
Loading…
Reference in New Issue