mirror of https://github.com/status-im/go-waku.git
Default validators not executed (#887)
This commit is contained in:
parent
24879b2a0b
commit
10e32d1059
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue