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

Call invoker if Workflow is nil #392

Merged
merged 3 commits into from
Jan 26, 2023

Conversation

ostafen
Copy link
Contributor

@ostafen ostafen commented Jan 26, 2023

In a previous PR, I fixed a panic occuring when the client is not used inside saga.
Now, I noticed that returning nil when no Worfklow is found has the effect of skipping the grpc call, which is not what we want when we use the client outside saga: client should behave like if no interceptor was there outside saga.
@yedf2: can you confirm that calling invoker the way I'm doing has the effect of completing the call?

@yedf2
Copy link
Contributor

yedf2 commented Jan 26, 2023

There is a directory test which have many test cases. You can add a test case to verify that the function of the interceptor is working as expected.

@ostafen
Copy link
Contributor Author

ostafen commented Jan 26, 2023

okay, I will take a look at that

@yedf2 yedf2 merged commit 2cd5f5d into dtm-labs:main Jan 26, 2023
@ostafen
Copy link
Contributor Author

ostafen commented Jan 26, 2023

Thank you, I wait for new release tag

@yedf2
Copy link
Contributor

yedf2 commented Jan 26, 2023

@ostafen client released v1.16.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants