(ctx context.Context)
| 1106 | } |
| 1107 | |
| 1108 | func (i *Lifecycler) getRing(ctx context.Context) (*Desc, error) { |
| 1109 | obj, err := i.KVStore.Get(ctx, i.RingKey) |
| 1110 | if err != nil { |
| 1111 | return nil, err |
| 1112 | } |
| 1113 | |
| 1114 | return GetOrCreateRingDesc(obj), nil |
| 1115 | } |
| 1116 | |
| 1117 | func (i *Lifecycler) ServeHTTP(w http.ResponseWriter, req *http.Request) { |
| 1118 | newRingPageHandler(i, i.cfg.HeartbeatTimeout, i.cfg.StatusPageConfig).handle(w, req) |
nothing calls this directly
no test coverage detected