You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/core/src/lib/lit-core.ts
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -699,9 +699,11 @@ export class LitCore {
699
699
awaitPromise.race([
700
700
newPromise((_resolve,reject)=>{
701
701
timeoutHandle=setTimeout(()=>{
702
-
constmsg=`Error: Could not handshake with nodes after timeout of ${this.config.connectTimeout
703
-
}ms. Could only connect to ${Object.keys(serverKeys).length} of ${this.config.bootstrapUrls.length
704
-
} nodes. Please check your network connection and try again. Note that you can control this timeout with the connectTimeout config option which takes milliseconds.`;
702
+
constmsg=`Error: Could not handshake with nodes after timeout of ${
703
+
this.config.connectTimeout
704
+
}ms. Could only connect to ${Object.keys(serverKeys).length} of ${
705
+
this.config.bootstrapUrls.length
706
+
} nodes. Please check your network connection and try again. Note that you can control this timeout with the connectTimeout config option which takes milliseconds.`;
705
707
706
708
try{
707
709
thrownewInitError({},msg);
@@ -1029,8 +1031,8 @@ export class LitCore {
1029
1031
this._epochCache.currentNumber&&
1030
1032
this._epochCache.startTime&&
1031
1033
Math.floor(Date.now()/1000)<
1032
-
this._epochCache.startTime+
1033
-
Math.floor(EPOCH_PROPAGATION_DELAY/1000)&&
1034
+
this._epochCache.startTime+
1035
+
Math.floor(EPOCH_PROPAGATION_DELAY/1000)&&
1034
1036
this._epochCache.currentNumber>=3// FIXME: Why this check?
0 commit comments