refactor: reuse constants for redis db
This commit is contained in:
@@ -27,13 +27,8 @@ import (
|
||||
"google.golang.org/grpc/credentials/insecure"
|
||||
)
|
||||
|
||||
const (
|
||||
// FIX: Use separate redis instance. We start with higher number because use this same instance in helios.
|
||||
REDIS_DATABASE_FOR_AUTH int = 4
|
||||
)
|
||||
|
||||
func redisForAuth() *redis.Client {
|
||||
return internal.ConnectAndTestRedis(REDIS_DATABASE_FOR_AUTH)
|
||||
return internal.ConnectAndTestRedis(db.RedisDBAuth)
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
||||
Reference in New Issue
Block a user