Skip to content

Commit

Permalink
Use 'Read' connection while ping 'Read' redis connection'
Browse files Browse the repository at this point in the history
  • Loading branch information
satriaa14 authored and agungdwiprasetyo committed Oct 18, 2024
1 parent da06dc9 commit 1541af3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/database/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1541af3

Please sign in to comment.