Update gun.js

This commit is contained in:
Mark Nadal 2022-03-07 04:22:10 -08:00 committed by GitHub
parent 85d34c4bde
commit 5c7e5c31b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
gun.js
View File

@ -1781,6 +1781,7 @@ if(!GUN.window){ return } // disable
if(GUN.version < 0.2022){ return } // disable
if(GUN.noAB || u !== GUN.testAXE){ return } // diable
if(localStorage.noTest){ return } // disable
if(Math.random() > 0.01){ return } // reached ulimit, shrink sample size.
console.log("Debugging p2p 'torrent' latency. Disable with `localStorage.noTest=1`.");
// TEST 1: Check if Rust has memory leak as idle websockets come/go.
var s = +new Date, ws = new WebSocket(atob('d3NzOi8vZ3VuMDEuYml0Y2h1dGUueHl6L2d1bg'));