diff --git a/config/database/redis.go b/config/database/redis.go index 35c1e50..76c2558 100644 --- a/config/database/redis.go +++ b/config/database/redis.go @@ -52,7 +52,7 @@ func (m *RedisInstance) Health() map[string]error { mErr["redis_write"] = err } if m.DBRead != nil { - connRead := m.DBWrite.Get() + connRead := m.DBRead.Get() defer connRead.Close() _, err := connRead.Do("PING") mErr["redis_read"] = err