-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "feat: allow option set agent replica time (#923)"
This reverts commit a973a4d.
- Loading branch information
Jason
authored
Sep 27, 2024
1 parent
21cf470
commit 2181f4a
Showing
14 changed files
with
37 additions
and
260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
packages/agent/src/agent/http/__snapshots__/calculateReplicaTime.test.ts.snap
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,10 @@ | ||
import { HttpAgent } from '.'; | ||
import { AgentError } from '../../errors'; | ||
import { HttpDetailsResponse } from '../api'; | ||
|
||
export class AgentHTTPResponseError extends AgentError { | ||
constructor( | ||
message: string, | ||
public readonly response: HttpDetailsResponse, | ||
) { | ||
constructor(message: string, public readonly response: HttpDetailsResponse) { | ||
super(message); | ||
this.name = this.constructor.name; | ||
Object.setPrototypeOf(this, new.target.prototype); | ||
} | ||
} | ||
|
||
export class ReplicaTimeError extends AgentError { | ||
public readonly replicaTime: Date; | ||
public readonly agent: HttpAgent; | ||
|
||
constructor(message: string, replicaTime: Date, agent: HttpAgent) { | ||
super(message); | ||
this.name = 'ReplicaTimeError'; | ||
this.replicaTime = replicaTime; | ||
this.agent = agent; | ||
Object.setPrototypeOf(this, new.target.prototype); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.