mirror of
https://github.com/amark/gun.git
synced 2025-10-14 00:59:35 +00:00
deferred typo timeout performance fix
This commit is contained in:
parent
73019d642c
commit
a32fa7cc8c
2
gun.js
2
gun.js
@ -723,7 +723,7 @@
|
|||||||
if(u !== ctx.defer){
|
if(u !== ctx.defer){
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
Gun.on.put(msg, gun);
|
Gun.on.put(msg, gun);
|
||||||
}, ctx.defer - at.machine);
|
}, ctx.defer - ctx.machine);
|
||||||
}
|
}
|
||||||
if(!ctx.diff){ return }
|
if(!ctx.diff){ return }
|
||||||
at.on('put', obj_to(msg, {put: ctx.diff}));
|
at.on('put', obj_to(msg, {put: ctx.diff}));
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gun",
|
"name": "gun",
|
||||||
"version": "0.9.91",
|
"version": "0.9.92",
|
||||||
"description": "A realtime, decentralized, offline-first, graph data synchronization engine.",
|
"description": "A realtime, decentralized, offline-first, graph data synchronization engine.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"browser": "gun.min.js",
|
"browser": "gun.min.js",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user