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

Replacing callbacks #522

Closed
wants to merge 4 commits into from
Closed

Replacing callbacks #522

wants to merge 4 commits into from

Conversation

SoTrx
Copy link
Contributor

@SoTrx SoTrx commented Sep 15, 2023

Description

I replaced callbacks in the gRPC client implementation with their promise equivalent.

It uses promisify. I considered wrapping the client itself, but I couldn't do it in a truly type-safe way.

Issue reference

#483

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • [NA] Created/updated tests
  • [NA] Extended the documentation

Ps: Sorry for the delay, I kind of forgot that this issue existed to be honest.

… grpc client

Signed-off-by: SoTrx <lucas.peirone@free.fr>
Signed-off-by: SoTrx <lucas.peirone@free.fr>
Signed-off-by: SoTrx <lucas.peirone@free.fr>
Signed-off-by: SoTrx <lucas.peirone@free.fr>

chore(project): Pretty-fix

Signed-off-by: SoTrx <lucas.peirone@free.fr>

chore(project): Pretty-fix

Signed-off-by: SoTrx <lucas.peirone@free.fr>

chore(project): Pretty-fix

Signed-off-by: SoTrx <lucas.peirone@free.fr>

chore(project): Pretty-fix

Signed-off-by: SoTrx <lucas.peirone@free.fr>

chore(project): Pretty-fix

Signed-off-by: SoTrx <lucas.peirone@free.fr>

chore(project): Pretty-fix

Signed-off-by: SoTrx <lucas.peirone@free.fr>
@SoTrx SoTrx requested review from a team as code owners September 15, 2023 13:16
@codecov
Copy link

codecov bot commented Sep 15, 2023

Codecov Report

Patch coverage: 21.37% and project coverage change: +0.22% 🎉

Comparison is base (553affa) 35.23% compared to head (2d93a85) 35.46%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #522      +/-   ##
==========================================
+ Coverage   35.23%   35.46%   +0.22%     
==========================================
  Files          90       90              
  Lines       10143    10117      -26     
  Branches      415      394      -21     
==========================================
+ Hits         3574     3588      +14     
+ Misses       6503     6463      -40     
  Partials       66       66              
Files Changed Coverage Δ
src/implementation/Client/GRPCClient/state.ts 6.95% <3.03%> (+1.44%) ⬆️
.../implementation/Client/GRPCClient/configuration.ts 10.52% <5.26%> (+1.43%) ⬆️
src/implementation/Client/GRPCClient/metadata.ts 22.72% <7.69%> (+6.06%) ⬆️
src/implementation/Client/GRPCClient/invoker.ts 26.47% <11.11%> (+4.24%) ⬆️
src/implementation/Client/GRPCClient/secret.ts 20.00% <11.11%> (+6.95%) ⬆️
src/implementation/Client/GRPCClient/health.ts 36.36% <14.28%> (+9.09%) ⬆️
src/implementation/Client/GRPCClient/lock.ts 25.00% <14.28%> (+9.00%) ⬆️
src/implementation/Client/GRPCClient/binding.ts 33.33% <25.00%> (+7.01%) ⬆️
src/implementation/Client/GRPCClient/GRPCClient.ts 78.57% <60.00%> (+1.82%) ⬆️
src/implementation/Client/GRPCClient/pubsub.ts 87.23% <62.50%> (+4.62%) ⬆️
... and 1 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dapr-bot
Copy link
Collaborator

This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@dapr-bot dapr-bot added the stale label Oct 15, 2023
@dapr-bot
Copy link
Collaborator

This pull request has been automatically closed because it has not had activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions!

@dapr-bot dapr-bot closed this Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants