Skip to content

Commit

Permalink
reset redis timeout back to 1 minute
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol committed Aug 29, 2024
1 parent 56cd5f0 commit 7efb1f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions database/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ func InitializeDb() (*Instance, error) {
Addr: addr,
DB: db,
DialTimeout: 10 * time.Second,
ReadTimeout: 5 * time.Second,
WriteTimeout: 5 * time.Second,
ReadTimeout: 1 * time.Minute,
WriteTimeout: 1 * time.Minute,
}
} else {
redisOptions = &redis.Options{
Addr: addr,
Password: password,
DB: db,
DialTimeout: 10 * time.Second,
ReadTimeout: 5 * time.Second,
WriteTimeout: 5 * time.Second,
ReadTimeout: 1 * time.Minute,
WriteTimeout: 1 * time.Minute,
}
}

Expand Down

0 comments on commit 7efb1f1

Please sign in to comment.