Skip to content

Commit

Permalink
Update the addressbook update to be 24 hours (#1359)
Browse files Browse the repository at this point in the history
* Update the addressbook update to be 24 hours

Signed-off-by: ochikov <[email protected]>

* Fix the common_js tests

Signed-off-by: ochikov <[email protected]>

Signed-off-by: ochikov <[email protected]>
  • Loading branch information
ochikov authored Dec 19, 2022
1 parent cc1d431 commit aa11eea
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion common_js_test/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ tasks:
deps:
- install
cmds:
- ./node_modules/.bin/mocha --inline-diffs -r @babel/register -r chai/register-expect.js "src/test.js"
- ./node_modules/.bin/mocha --exit --inline-diffs -r @babel/register -r chai/register-expect.js "src/test.js"
2 changes: 1 addition & 1 deletion src/client/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default class Client {
this._requestTimeout = null;

/** @private */
this._networkUpdatePeriod = 10000;
this._networkUpdatePeriod = 24 * 60 * 60 * 1000;

/** @private */
this._isShutdown = false;
Expand Down
4 changes: 0 additions & 4 deletions src/network/AddressBookQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,6 @@ export default class AddressBookQuery {
const message =
error instanceof Error ? error.message : error.details;
console.log("ERROR:", error);
console.log(
"ERRORED, but CLIENT CLOSE IS",
client.isClientShutDown
);
if (
this._attempt < this._maxAttempts &&
!client.isClientShutDown &&
Expand Down

0 comments on commit aa11eea

Please sign in to comment.