(registeredAt time.Time)
| 406 | } |
| 407 | |
| 408 | func (i *Lifecycler) setRegisteredAt(registeredAt time.Time) { |
| 409 | i.stateMtx.Lock() |
| 410 | defer i.stateMtx.Unlock() |
| 411 | i.registeredAt = registeredAt |
| 412 | } |
| 413 | |
| 414 | // GetReadOnlyState returns the read-only state of this instance -- whether instance is read-only, and when what the last |
| 415 | // update of read-only state (possibly zero). |
no outgoing calls
no test coverage detected