smol fix
This commit is contained in:
parent
82c585e4fb
commit
ac13bcc1af
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
@ -30,8 +30,7 @@ func main() {
|
|||
|
||||
// Initialize Redis client
|
||||
redisClient, redisError := adapters.NewRedisClient()
|
||||
|
||||
adapters.RedisClient = redisClient
|
||||
|
||||
|
||||
// Initialize pubsub
|
||||
var pubSub pubsub.PubSub
|
||||
|
@ -40,6 +39,7 @@ func main() {
|
|||
lib.LogWarning.Printf("\n[PUBSUB/INIT] Falling back to LocalPubSub\n")
|
||||
pubSub = &adapters.LocalPubSub{}
|
||||
} else {
|
||||
adapters.RedisClient = redisClient
|
||||
pubSub = &adapters.RedisPubSub{
|
||||
Client: adapters.RedisClient,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue