fix: we use fire, as the event name
This commit is contained in:
parent
180b76ee3c
commit
773a66207d
|
@ -286,10 +286,10 @@ func (r *RegistryImpl) Listen(pk []byte, cb func(sre interfaces.SignedRegistryEn
|
||||||
}
|
}
|
||||||
streamVal, _ := r.streams.Get(key)
|
streamVal, _ := r.streams.Get(key)
|
||||||
stream := streamVal.(*emitter.Emitter)
|
stream := streamVal.(*emitter.Emitter)
|
||||||
channel := stream.On("event", cbProxy)
|
channel := stream.On("fire", cbProxy)
|
||||||
|
|
||||||
return func() {
|
return func() {
|
||||||
stream.Off("event", channel)
|
stream.Off("fire", channel)
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue