-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
Signed-off-by: Yashash H L <[email protected]>
Signed-off-by: Yashash H L <[email protected]>
select { | ||
case resp := <-responseCh: | ||
if err := stream.Send(resp); err != nil { | ||
log.Printf("failed to send response: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.Printf("failed to send response: %v", err) | |
log.Printf("Failed to send response: %v", err) |
pkg/mapper/service.go
Outdated
break outer | ||
} | ||
if err != nil { | ||
log.Printf("failed to receive request: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log.Printf("failed to receive request: %v", err) | |
log.Printf("Failed to receive request: %v", err) |
select { | ||
case <-grpCtx.Done(): | ||
break outer | ||
default: |
There was a problem hiding this comment.
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:
}
pkg/mapper/service_test.go
Outdated
}{ | ||
{ | ||
name: "map_fn_forward_msg", | ||
name: "sourceTransform_fn_forward_msg", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: "sourceTransform_fn_forward_msg", | |
name: "map_fn_forward_msg", |
pkg/mapper/service_test.go
Outdated
}, | ||
{ | ||
name: "map_fn_forward_msg_forward_to_all", | ||
name: "sourceTransform_fn_forward_msg_forward_to_all", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: "sourceTransform_fn_forward_msg_forward_to_all", | |
name: "map_fn_forward_msg_forward_to_all", |
pkg/mapper/service_test.go
Outdated
}, | ||
{ | ||
name: "map_fn_forward_msg_drop_msg", | ||
name: "sourceTransform_fn_forward_msg_drop_msg", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name: "sourceTransform_fn_forward_msg_drop_msg", | |
name: "map_fn_forward_msg_drop_msg", |
Signed-off-by: Yashash H L <[email protected]>
No description provided.