-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add compensation feature to deno context and utils #945
base: main
Are you sure you want to change the base?
Conversation
bytes compensation_result = 3; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be json string?
| { | ||
type: "Compensate"; | ||
save_id: number; | ||
error: string; | ||
compensation_result: any; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Underlying protobuff type is not generated and converted.
You may want to look at gen-subs-protoc.
} catch (err: any) { | ||
if (option?.retry?.compensationOnfristFail) { | ||
await this.#triggerCompensation(id, err); | ||
throw err; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Add compensation && utils feature to deno context
Migration notes