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

feat: Use bidirectional streaming for Source Transformer #147

Merged
merged 9 commits into from
Oct 1, 2024

Conversation

BulkBeing
Copy link
Contributor

@BulkBeing BulkBeing commented Sep 12, 2024

pkg/sourcetransformer/service.go Outdated Show resolved Hide resolved
pkg/sourcetransformer/service.go Outdated Show resolved Hide resolved
Comment on lines 128 to +134
}
responseList := &v1.SourceTransformResponse{
Results: results,

if err := grp.Wait(); err != nil {
statusErr := status.Errorf(codes.Internal, err.Error())
return statusErr
}
return responseList, nil
return nil
Copy link
Contributor

Choose a reason for hiding this comment

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

if there is an error we will not let the client know until the stream is closed?

Copy link
Contributor

@yhl25 yhl25 left a comment

Choose a reason for hiding this comment

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

rebase has problems

@BulkBeing
Copy link
Contributor Author

rebase has problems

Fixed by using merge commit instead of rebasing.

@yhl25 yhl25 merged commit e65c766 into main Oct 1, 2024
3 checks passed
@yhl25 yhl25 deleted the source-transformer-streaming branch October 1, 2024 02:59
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.

4 participants