Skip to content

Commit

Permalink
refactor: redis params
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiiRepair committed Dec 19, 2023
1 parent a3b6667 commit 9af0e0b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions kreacher/clients.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package kreacher

import (
"fmt"
"time"

td "github.com/gotd/td/telegram"
Expand All @@ -9,10 +10,10 @@ import (
)

var rdb = redis.NewClient(&redis.Options{
Addr: "localhost:6379",
Password: "", // no password set
DB: 0, // use default DB
Protocol: 3, // specify 2 for RESP 2 or 3 for RESP 3
Addr: fmt.Sprintf("%s:%d", NewConfig().RedisHost, NewConfig().RedisPort),
Password: NewConfig().RedisPassword,
DB: 0, // use default DB
Protocol: 3, // specify 2 for RESP 2 or 3 for RESP 3
})

var kbot, _ = tele.NewBot(tele.Settings{
Expand Down

0 comments on commit 9af0e0b

Please sign in to comment.