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

Iter20 #23

Merged
merged 43 commits into from
Jun 12, 2024
Merged

Iter20 #23

merged 43 commits into from
Jun 12, 2024

Conversation

StasMerzlyakov
Copy link
Owner

No description provided.

StasMerzlyakov and others added 30 commits March 20, 2024 10:24
…-логике

сделал более аккуратную обработку ошибок
актуализировал вопросы
отладился, прошел локальный тест
поправил форматирвоание
обновил вопросы
err = invoker.Invoke(req.Context(), invokableFn)
if err != nil {
log.Errorw("RetriableRequestMW", "error", err.Error())
http.Error(w, err.Error(), domain.MapDomainErrorToHTTPStatusErr(err))
Copy link

Choose a reason for hiding this comment

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

Ты когда печатаешь так ошибку в http ответ
Главное чтоб туда не просочились ошибки бизнес логики

@@ -21,21 +22,7 @@ type storage struct {
databaseURL string
}

var createCounterTableSQL = `CREATE TABLE IF NOT EXISTS counter(
name text not null,
Copy link

Choose a reason for hiding this comment

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

Ну id обычный числовой все равно должен быть

Copy link
Owner Author

Choose a reason for hiding this comment

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

Не уверен что должен быть числовой ID.
После курса планирую "PostgreSQL 15 изнутри" изучить - оставлю пока вопрос открытым.

@StasMerzlyakov StasMerzlyakov merged commit 2655119 into main Jun 12, 2024
3 checks passed
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.

2 participants