mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
swarm/pss: Remove redundant caps flag check
This commit is contained in:
parent
91b45cc965
commit
d446510241
1 changed files with 2 additions and 2 deletions
|
|
@ -332,10 +332,10 @@ func (p *Pss) Register(topic *Topic, hndlr *handler) func() {
|
|||
if _, ok := p.topicHandlerCaps[*topic]; !ok {
|
||||
p.topicHandlerCaps[*topic] = &handlerCaps{}
|
||||
}
|
||||
if !p.topicHandlerCaps[*topic].raw && hndlr.caps.raw {
|
||||
if hndlr.caps.raw {
|
||||
p.topicHandlerCaps[*topic].raw = true
|
||||
}
|
||||
if !p.topicHandlerCaps[*topic].prox && hndlr.caps.prox {
|
||||
if hndlr.caps.prox {
|
||||
p.topicHandlerCaps[*topic].prox = true
|
||||
}
|
||||
return func() { p.deregister(topic, hndlr) }
|
||||
|
|
|
|||
Loading…
Reference in a new issue