diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-03-06 18:40:00 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-03-06 18:40:00 +0530 |
commit | 7c7d3e001ec3fa066ad7a41876142c331e3e2f0f (patch) | |
tree | c32df465c3821df8cb63b00ee9d357d03c4e6c9f /src/operations | |
parent | e1168fbec00396a6ccb6d49c9405615a8a22cb72 (diff) |
documentation / enum types for pending ops
Diffstat (limited to 'src/operations')
-rw-r--r-- | src/operations/pending.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/operations/pending.ts b/src/operations/pending.ts index 3ae44692a..9e2ff6b32 100644 --- a/src/operations/pending.ts +++ b/src/operations/pending.ts @@ -26,6 +26,7 @@ import { import { PendingOperationsResponse, PendingOperationType, + ExchangeUpdateOperationStage, } from "../types/pending"; import { Duration, getTimestampNow, Timestamp, getDurationRemaining, durationMin } from "../util/time"; import { TransactionHandle } from "../util/query"; @@ -92,7 +93,7 @@ async function gatherExchangePending( resp.pendingOperations.push({ type: PendingOperationType.ExchangeUpdate, givesLifeness: false, - stage: "fetch-keys", + stage: ExchangeUpdateOperationStage.FetchKeys, exchangeBaseUrl: e.baseUrl, lastError: e.lastError, reason: e.updateReason || "unknown", @@ -102,7 +103,7 @@ async function gatherExchangePending( resp.pendingOperations.push({ type: PendingOperationType.ExchangeUpdate, givesLifeness: false, - stage: "fetch-wire", + stage: ExchangeUpdateOperationStage.FetchWire, exchangeBaseUrl: e.baseUrl, lastError: e.lastError, reason: e.updateReason || "unknown", @@ -112,7 +113,7 @@ async function gatherExchangePending( resp.pendingOperations.push({ type: PendingOperationType.ExchangeUpdate, givesLifeness: false, - stage: "finalize-update", + stage: ExchangeUpdateOperationStage.FinalizeUpdate, exchangeBaseUrl: e.baseUrl, lastError: e.lastError, reason: e.updateReason || "unknown", |