-
Notifications
You must be signed in to change notification settings - Fork 0
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
runnerのgRPCを実装 #58
runnerのgRPCを実装 #58
Conversation
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.
Copilot reviewed 5 out of 8 changed files in this pull request and generated 1 comment.
Files not reviewed (3)
- cmd/runner/main.go: Evaluated as low risk
- gen/portal/v1/generate.go: Evaluated as low risk
- runner/portal/grpc/portal_test.go: Evaluated as low risk
Comments suppressed due to low confidence (1)
runner/portal/grpc/stream.go:39
- [nitpick] The error message could be more descriptive. Consider including more context about the error.
return fmt.Errorf("close progress stream: %w", err)
|
||
var _ portal.ProgressStreamClient = (*ProgressStreamClient)(nil) | ||
|
||
func (c *ProgressStreamClient) SendProgress(_ context.Context, progress *domain.Progress) error { |
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.
The progress
parameter should be checked for nil
to prevent potential runtime panic. Add a check to return an error if progress
is nil
.
func (c *ProgressStreamClient) SendProgress(_ context.Context, progress *domain.Progress) error { | |
func (c *ProgressStreamClient) SendProgress(_ context.Context, progress *domain.Progress) error { | |
if progress == nil { | |
return fmt.Errorf("progress parameter is nil") | |
} |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
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.
よさそうです。ありがとうございます
runnerがportalとgRPCで通信する部分を実装した。