Skip to content

Commit

Permalink
grpc-js: Remove progress field in status from retrying call
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed Feb 7, 2023
1 parent cea545d commit 3596c4f
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 3596c4f

Please sign in to comment.