fix: we use fire, as the event name

This commit is contained in:
Derrick Hammer 2024-01-10 07:20:09 -05:00
parent 180b76ee3c
commit 773a66207d
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 2 deletions

View File

@ -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
} }