fix: need to spin emit off
This commit is contained in:
parent
b542de3cb0
commit
6591b2a79f
|
@ -116,7 +116,7 @@ func (r *RegistryImpl) Set(sre interfaces.SignedRegistryEntry, trusted bool, rec
|
||||||
eventObj, ok := r.streams.Get(keyString)
|
eventObj, ok := r.streams.Get(keyString)
|
||||||
if ok {
|
if ok {
|
||||||
event := eventObj.(*emitter.Emitter)
|
event := eventObj.(*emitter.Emitter)
|
||||||
event.Emit("fire", sre)
|
go event.Emit("fire", sre)
|
||||||
}
|
}
|
||||||
|
|
||||||
err = r.node.Db().Update(func(txn *bbolt.Tx) error {
|
err = r.node.Db().Update(func(txn *bbolt.Tx) error {
|
||||||
|
|
Loading…
Reference in New Issue