mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-27 22:15:38 +00:00
fix: indirect access to content topic
This commit is contained in:
parent
0a0542324c
commit
be168ebe3f
@ -148,7 +148,7 @@ func (w *WakuStore) FindMessages(query *protocol.HistoryQuery) *protocol.History
|
|||||||
// data holds IndexedWakuMessage whose topics match the query
|
// data holds IndexedWakuMessage whose topics match the query
|
||||||
var data []IndexedWakuMessage
|
var data []IndexedWakuMessage
|
||||||
for _, indexedMsg := range w.messages {
|
for _, indexedMsg := range w.messages {
|
||||||
if contains(query.Topics, *indexedMsg.msg.ContentTopic) {
|
if contains(query.Topics, indexedMsg.msg.ContentTopic) {
|
||||||
data = append(data, indexedMsg)
|
data = append(data, indexedMsg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user