add ping to redis
This commit is contained in:
parent
e7e249a2ba
commit
5b083eaee9
@ -93,5 +93,8 @@ func (r *CodewordRepository) Ping(ctx context.Context) error {
|
||||
if err := r.mdb.Database().Client().Ping(ctx, readpref.Primary()); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := r.rdb.Ping(ctx).Err(); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user