Skip to content

Commit

Permalink
chore: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dfx-json committed Sep 27, 2024
1 parent e875f18 commit 256be8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/agent/src/agent/http/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,9 @@ export class HttpAgent implements Agent {
);
}

// If the error is due to the ingress expiry being misconfigured,
// sync this instance's replica time using the value provided in
// the error response and retry
if ((error as ReplicaTimeError).message.includes('ingress_expiry')) {
this.log.warn('Agent time out of sync. Updating and retrying...');
this.replicaTime = (error as ReplicaTimeError).replicaTime;
Expand Down

0 comments on commit 256be8f

Please sign in to comment.