Skip to content

Commit

Permalink
Properly pass RetrySettings parameter in the functional rpc API.
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanEwen committed Jan 29, 2024
1 parent 63017c8 commit a747319
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/restate_context_impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -596,8 +596,11 @@ export class RpcContextImpl implements RpcContext {
public clear(name: string): void {
this.ctx.clear(name);
}
public sideEffect<T>(fn: () => Promise<T>): Promise<T> {
return this.ctx.sideEffect(fn);
public sideEffect<T>(
fn: () => Promise<T>,
retryPolicy?: RetrySettings
): Promise<T> {
return this.ctx.sideEffect(fn, retryPolicy);
}
public awakeable<T>(): { id: string; promise: Promise<T> } {
return this.ctx.awakeable();
Expand Down

0 comments on commit a747319

Please sign in to comment.