fix: need to spin emit off

This commit is contained in:
Derrick Hammer 2024-01-10 07:32:34 -05:00
parent b542de3cb0
commit 6591b2a79f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ func (r *RegistryImpl) Set(sre interfaces.SignedRegistryEntry, trusted bool, rec
eventObj, ok := r.streams.Get(keyString)
if ok {
event := eventObj.(*emitter.Emitter)
event.Emit("fire", sre)
go event.Emit("fire", sre)
}
err = r.node.Db().Update(func(txn *bbolt.Tx) error {