mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
swarm/pss: Move topic handler cap add to unconditional add
This commit is contained in:
parent
122d351c62
commit
88eb8c5e36
1 changed files with 1 additions and 1 deletions
|
|
@ -322,10 +322,10 @@ func (p *Pss) Register(topic *Topic, hndlr *handler) func() {
|
|||
if handlers == nil {
|
||||
handlers = make(map[*handler]bool)
|
||||
p.handlers[*topic] = handlers
|
||||
p.topicHandlerCaps[*topic] = hndlr.caps
|
||||
log.Debug("registered handler", "caps", hndlr.caps)
|
||||
}
|
||||
handlers[hndlr] = true
|
||||
p.topicHandlerCaps[*topic] |= hndlr.caps
|
||||
return func() { p.deregister(topic, hndlr) }
|
||||
}
|
||||
func (p *Pss) deregister(topic *Topic, hndlr *handler) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue