mirror of
https://github.com/urbit/shrub.git
synced 2024-11-24 22:30:45 +03:00
@urbit/http-api: disable subscription resume
This commit is contained in:
parent
0cdbebbd66
commit
b4ed8fe179
@ -94,7 +94,7 @@ export class Urbit {
|
|||||||
credentials: 'include',
|
credentials: 'include',
|
||||||
accept: '*',
|
accept: '*',
|
||||||
headers,
|
headers,
|
||||||
signal: this.abort
|
signal: this.abort.signal
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -240,7 +240,8 @@ export class Urbit {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onerror: (error) => {
|
onerror: (error) => {
|
||||||
if(this.errorCount++ < 5) {
|
// Channel resume currently broken in eyre
|
||||||
|
if(false && this.errorCount++ < 5) {
|
||||||
console.log(this.errorCount);
|
console.log(this.errorCount);
|
||||||
this.onRetry && this.onRetry();
|
this.onRetry && this.onRetry();
|
||||||
return Math.pow(2, this.errorCount - 1) * 750;
|
return Math.pow(2, this.errorCount - 1) * 750;
|
||||||
|
Loading…
Reference in New Issue
Block a user