added not-yet-implemented and pretty
This commit is contained in:
parent
e573c56873
commit
bc67ff0c7f
@ -1227,6 +1227,8 @@ export async function abortTransaction(
|
||||
await abortPay(ws, proposalId, forceImmediateAbort);
|
||||
} else {
|
||||
const unknownTxType: any = type;
|
||||
throw Error(`can't abort a '${unknownTxType}' transaction`);
|
||||
throw Error(
|
||||
`can't abort a '${unknownTxType}' transaction: not yet implemented`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ export enum PendingTaskType {
|
||||
Deposit = "deposit",
|
||||
Backup = "backup",
|
||||
PeerPushInitiation = "peer-push-initiation",
|
||||
PeerPullInitiation = "peer-pull\-initiation",
|
||||
PeerPullInitiation = "peer-pull-initiation",
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -215,10 +215,14 @@ export namespace RetryTags {
|
||||
export function byPaymentProposalId(proposalId: string): string {
|
||||
return `${PendingTaskType.Purchase}:${proposalId}`;
|
||||
}
|
||||
export function byPeerPushPaymentInitiationPursePub(pursePub: string): string {
|
||||
export function byPeerPushPaymentInitiationPursePub(
|
||||
pursePub: string,
|
||||
): string {
|
||||
return `${PendingTaskType.PeerPushInitiation}:${pursePub}`;
|
||||
}
|
||||
export function byPeerPullPaymentInitiationPursePub(pursePub: string): string {
|
||||
export function byPeerPullPaymentInitiationPursePub(
|
||||
pursePub: string,
|
||||
): string {
|
||||
return `${PendingTaskType.PeerPullInitiation}:${pursePub}`;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user