Skip to content

Commit

Permalink
Adding pretty response config
Browse files Browse the repository at this point in the history
  • Loading branch information
lucifercr07 committed Oct 18, 2024
1 parent e3d733c commit d56bd44
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions internal/db/dicedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ func (db *DiceDB) CloseDiceDB() {

func InitDiceClient(configValue *config.Config) (*DiceDB, error) {
diceClient := dicedb.NewClient(&dicedb.Options{
Addr: configValue.DiceDB.Addr,
Username: configValue.DiceDB.Username,
Password: configValue.DiceDB.Password,
DialTimeout: 10 * time.Second,
MaxRetries: 10,
Addr: configValue.DiceDB.Addr,
Username: configValue.DiceDB.Username,
Password: configValue.DiceDB.Password,
DialTimeout: 10 * time.Second,
MaxRetries: 10,
EnablePrettyResponse: true,
})

// Ping the dicedb client to verify the connection
Expand Down

0 comments on commit d56bd44

Please sign in to comment.