swarm/pss: Message handler refactor (#18169)
This commit is contained in:
@@ -486,7 +486,7 @@ func (api *HandshakeAPI) Handshake(pubkeyid string, topic Topic, sync bool, flus
|
||||
|
||||
// Activate handshake functionality on a topic
|
||||
func (api *HandshakeAPI) AddHandshake(topic Topic) error {
|
||||
api.ctrl.deregisterFuncs[topic] = api.ctrl.pss.Register(&topic, api.ctrl.handler)
|
||||
api.ctrl.deregisterFuncs[topic] = api.ctrl.pss.Register(&topic, NewHandler(api.ctrl.handler))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user