Skip to content

Commit

Permalink
fixup! refactor: update redis connector
Browse files Browse the repository at this point in the history
  • Loading branch information
olexsmir committed Oct 24, 2024
1 parent 9399f13 commit d8cb510
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,9 @@ func run(ctx context.Context) error {
return errors.Join(errors.New("failed to close postgres connection"), err)
}

if err := redisDB.Close(); err != nil {
return errors.Join(errors.New("failed to close redis connection"), err)
}

return nil
}

0 comments on commit d8cb510

Please sign in to comment.