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