CheckReady returns nil if the live-store is ready to serve queries
(_ context.Context)
| 784 | |
| 785 | // CheckReady returns nil if the live-store is ready to serve queries |
| 786 | func (s *LiveStore) CheckReady(_ context.Context) error { |
| 787 | if err := s.readyErr.Load(); err != nil { |
| 788 | return *err |
| 789 | } |
| 790 | return nil |
| 791 | } |
| 792 | |
| 793 | // OnRingInstanceRegister implements ring.BasicLifecyclerDelegate |
| 794 | func (s *LiveStore) OnRingInstanceRegister(_ *ring.BasicLifecycler, _ ring.Desc, _ bool, _ string, _ ring.InstanceDesc) (ring.InstanceState, ring.Tokens) { |
no outgoing calls
no test coverage detected