Remove setTimeout() when publishing to pubsub
This commit is contained in:
parent
5f5479825d
commit
0bd85aed4a
@ -122,7 +122,7 @@ class OrbitDB {
|
||||
// Callback for local writes to the database. We the update to pubsub.
|
||||
_onWrite (address, entry, heads) {
|
||||
if(!heads) throw new Error("'heads' not defined")
|
||||
if(this._pubsub) setImmediate(() => this._pubsub.publish(address, heads))
|
||||
if(this._pubsub) this._pubsub.publish(address, heads)
|
||||
}
|
||||
|
||||
// Callback for receiving a message from the network
|
||||
|
Loading…
x
Reference in New Issue
Block a user