Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactor and cleanup translation between gRPC status codes and…
… http codes (#1713) Move all mapping from GrpcStorageImpl and BackwardCompatibilityUtils to GrpcToHttpStatusCodeTranslation. Define new GrpcToHttpStatusCodeTranslation.StatusCodeMapping to explicitly define a mapping between io.grpc.Status.Code and our http code Update tests to be explicit and not depend on utility methods which can also be used by the code under test. Add new tests to ensure expected status codes are returned when evaluating DefaultStorageRetryStrategy
- Loading branch information
1 parent
5ff8be1
commit 0194639
Showing
8 changed files
with
350 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.