Default validators not executed (#887)

This commit is contained in:
Hish Bouabdallah 2023-11-10 15:00:12 +04:00 committed by GitHub
parent 24879b2a0b
commit 10e32d1059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

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 {