Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

j03-dev
Copy link
Contributor

@j03-dev j03-dev commented Dec 19, 2024

Add compensation && utils feature to deno context

Migration notes


  • The change comes with new or modified tests
  • Hard-to-understand functions have explanatory comments
  • End-user documentation is updated to reflect the change

Copy link

linear bot commented Dec 19, 2024

Comment on lines +37 to +38
bytes compensation_result = 3;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be json string?

Comment on lines +321 to +326
| {
type: "Compensate";
save_id: number;
error: string;
compensation_result: any;
};
Copy link
Contributor

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.

Comment on lines 89 to +93
} catch (err: any) {
if (option?.retry?.compensationOnfristFail) {
await this.#triggerCompensation(id, err);
throw err;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants