-
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
implement grpc controller and client #23
base: main
Are you sure you want to change the base?
Conversation
Нужно ли добавить какие-то интерсепторы? |
cmd/agent/grpc_client.go
Outdated
|
||
c := metrics.NewMetricServiceClient(conn) | ||
|
||
// TODO: interceptors |
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.
Этот комментарий либо надо удалить, либо добавить интерсепторы, как планировалось
cmd/agent/grpc_client.go
Outdated
|
||
} | ||
|
||
// func (c *grpcClient) SomeInterceptor( |
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.
deadcode
cmd/agent/grpc_client.go
Outdated
|
||
resp, err := c.client.UpdateMetricSet(context.Background(), in) | ||
if err != nil { | ||
log.Fatal(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.
Не надо фаталиться из глубины кода
cmd/server/config.go
Outdated
|
||
type Config struct { | ||
Address string `json:"address" env:"ADDRESS"` | ||
LogLevel string |
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.
Стоит добавить struct tag
cmd/server/private.pem
Outdated
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.
Этот файл не стоит пушить в репозиторий, лучше добавь инструкции о том, как генерировать файлы с ключами
server
Outdated
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.
Не надо пушить бинарные файлы в репозиторий
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.
Поправь замечания линтера и все ок
No description provided.