bringing things to order in workflows and skip manual test #124

Merged
vtolstov merged 5 commits from atolstikhin/micro-store-redis:v3 into v3 2024-12-04 23:18:55 +03:00
Showing only changes of commit 25b86eaad5 - Show all commits

View File

@ -67,6 +67,18 @@ type Store struct {
mu sync.RWMutex
}
func (r *Store) Live() bool {
return r.connected.Load() == 1
}
func (r *Store) Ready() bool {
return r.connected.Load() == 1
}
func (r *Store) Health() bool {
return r.connected.Load() == 1
}
func (r *Store) Connect(ctx context.Context) error {
if r.connected.Load() == 1 {
return nil