summaryrefslogtreecommitdiff
path: root/main.go
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/main.go b/main.go
index 020f8ef..2f08ba6 100644
--- a/main.go
+++ b/main.go
@@ -143,14 +143,7 @@ func main() {
<-sigChan
slog.Info("gracefully shutting down...")
- if err = app.Shutdown(); err != nil {
- slog.Error("fail to shutdown fiber server", slog.String("error", err.Error()))
- }
- if err = router.CCache.Close(); err != nil {
- slog.Error("fail to dump cache", slog.String("error", err.Error()))
- }
- if err = db.Close(); err != nil {
- slog.Error("fail to close db connection", slog.String("error", err.Error()))
- }
+ app.Shutdown()
+ router.CCache.Close()
db.Close()
}