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

Add WaitServer #23

Merged
merged 2 commits into from
Mar 5, 2024
Merged

Add WaitServer #23

merged 2 commits into from
Mar 5, 2024

Conversation

chasefleming
Copy link
Member

Issue: #22

gateway/grpc.go Outdated
@@ -206,6 +206,11 @@ func (g *GrpcGateway) Ping() error {
return g.client.Ping(ctx)
}

func (g *GrpcGateway) WaitServer() error {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want the context to come in as an arugment?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just keeping it the same pattern as Ping. Do you think it's necessary?

Copy link
Collaborator

@bjartek bjartek Mar 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Best practise is to always send in ctx as first arg when doing network calls.

I have a pr somewhere to add ctx to the other calls i remember.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I think we need to change all to have context in general. not sure about how we version here, but this is a breaking change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about we merge this as is, then we'll do the bigger breaking change into 2.0?

Copy link
Member Author

@chasefleming chasefleming Mar 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah if we want to add context to Ping we should do it on the stable cadence branch. We can do it in WaitServer since it's new.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@codecov-commenter
Copy link

codecov-commenter commented Mar 5, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 58.73%. Comparing base (3cee43b) to head (fbde0f8).

Files Patch % Lines
flowkit.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #23      +/-   ##
==========================================
- Coverage   58.76%   58.73%   -0.03%     
==========================================
  Files          29       29              
  Lines        2202     2203       +1     
==========================================
  Hits         1294     1294              
- Misses        722      723       +1     
  Partials      186      186              
Flag Coverage Δ
unittests 58.73% <0.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@chasefleming chasefleming merged commit c2271d7 into main Mar 5, 2024
2 checks passed
@chasefleming chasefleming deleted the chasefleming/wait-server branch March 5, 2024 21:38
@chasefleming chasefleming added the enhancement New feature or request label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants