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: Using gRPC Bidirectional Streaming for Map #158

Merged
merged 3 commits into from
Oct 8, 2024
Merged

feat: Using gRPC Bidirectional Streaming for Map #158

merged 3 commits into from
Oct 8, 2024

Conversation

yhl25
Copy link
Contributor

@yhl25 yhl25 commented Oct 3, 2024

No description provided.

Signed-off-by: Yashash H L <[email protected]>
Signed-off-by: Yashash H L <[email protected]>
@yhl25 yhl25 requested review from BulkBeing and vigith October 4, 2024 03:14
@yhl25 yhl25 marked this pull request as ready for review October 4, 2024 03:14
select {
case resp := <-responseCh:
if err := stream.Send(resp); err != nil {
log.Printf("failed to send response: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
log.Printf("failed to send response: %v", err)
log.Printf("Failed to send response: %v", err)

break outer
}
if err != nil {
log.Printf("failed to receive request: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
log.Printf("failed to receive request: %v", err)
log.Printf("Failed to receive request: %v", err)

Comment on lines +75 to +78
select {
case <-grpCtx.Done():
break outer
default:
Copy link
Contributor

Choose a reason for hiding this comment

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

one level indentation can be removed by empty default case.

select {
case <-grpCtx.Done():
	break outer
default:
}

}{
{
name: "map_fn_forward_msg",
name: "sourceTransform_fn_forward_msg",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
name: "sourceTransform_fn_forward_msg",
name: "map_fn_forward_msg",

},
{
name: "map_fn_forward_msg_forward_to_all",
name: "sourceTransform_fn_forward_msg_forward_to_all",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
name: "sourceTransform_fn_forward_msg_forward_to_all",
name: "map_fn_forward_msg_forward_to_all",

},
{
name: "map_fn_forward_msg_drop_msg",
name: "sourceTransform_fn_forward_msg_drop_msg",
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
name: "sourceTransform_fn_forward_msg_drop_msg",
name: "map_fn_forward_msg_drop_msg",

Signed-off-by: Yashash H L <[email protected]>
@vigith vigith merged commit 702acef into main Oct 8, 2024
3 checks passed
@vigith vigith deleted the bidi-map branch October 8, 2024 14:32
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.

3 participants