Skip to content

Commit

Permalink
Merge pull request #2350 from murgatroid99/grpc-js_retry_clean_status
Browse files Browse the repository at this point in the history
grpc-js: Remove `progress` field in status from retrying call
  • Loading branch information
murgatroid99 committed Feb 8, 2023
2 parents cea545d + 3596c4f commit 9bf74d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/grpc-js/src/retrying-call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,12 @@ export class RetryingCall implements Call {
}
}
process.nextTick(() => {
this.listener?.onReceiveStatus(statusObject);
// Explicitly construct status object to remove progress field
this.listener?.onReceiveStatus({
code: statusObject.code,
details: statusObject.details,
metadata: statusObject.metadata
});
});
}

Expand Down

0 comments on commit 9bf74d9

Please sign in to comment.