Merge branch 'master' into feat/autoshard-store-api

This commit is contained in:
Prem Chaitanya Prathi 2023-11-10 16:35:56 +05:30 committed by GitHub
commit 064af69ef7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,9 +67,10 @@ func (w *WakuRelay) topicValidator(topic string) func(ctx context.Context, peerI
}
w.topicValidatorMutex.RLock()
validators, exists := w.topicValidators[topic]
validators := w.topicValidators[topic]
validators = append(validators, w.defaultTopicValidators...)
w.topicValidatorMutex.RUnlock()
exists := len(validators) > 0
if exists {
for _, v := range validators {