Skip to content

Commit

Permalink
2024-11-19 13:48:45: merge [main:9bf34172a53d944b92341486ea7e97962cb9…
Browse files Browse the repository at this point in the history
…7400];
  • Loading branch information
txix committed Nov 19, 2024
1 parent 820afbd commit a2f3e1c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.0
1.4.1
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# v1.4.1
* добавлена обработка ошибки при закрытии клиента `redis`
# v1.4.0
* добавлен метод `daily_limit/get` для проверки возможности отправки запроса пользователем
# v1.3.0
Expand Down
7 changes: 6 additions & 1 deletion assembly/assembly.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,12 @@ func (a *Assembly) Closers() []app.Closer {
return nil
}),
app.CloserFunc(func() error {
_ = a.redisCli.Close()
if a.redisCli != nil {
err := a.redisCli.Close()
if err != nil {
return errors.WithMessage(err, "shutdown redis client")
}
}
return nil
}),
}
Expand Down

0 comments on commit a2f3e1c

Please sign in to comment.