-
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
Hw13 calendar #13
Hw13 calendar #13
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.
Константин, спасибо за выполнение ДЗ.
Ничего критичного не нашел. Можно двигаться дальше в работе над календарем. :)
ctx, cancel := context.WithCancel(context.Background()) | ||
defer cancel() | ||
|
||
// Storage initialization. | ||
storage, err := factorystorage.GetStorage(ctx, config) |
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.
Сторадж вроде делают в предыдущем ДЗ? Я так понял, тут или какой-то рефакторинг или случайно коммиты попали. В ревью сосредоточился на части, связанной с API. Если в сторадже тоже есть что-то важное, что вы хотите показать, напишите, я посмотрю.
// TODO | ||
int64 id = 1; | ||
string title = 2; | ||
string begin_date = 3; |
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.
Как вариант можно использовать google.protobuf.Timestamp.
case <-signals: | ||
// Locking until OS signal is sent or context cancel func is called. | ||
<-ctx.Done() | ||
cancel() |
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.
Если контекст уже Done
, то нет смысла еще раз делать cancel()
:)
No description provided.