in v2/lockrenewer.go [103:115]
func (plr *peekLockRenewer) stop(ctx context.Context) {
logger := getLogger(ctx)
plr.alive.Store(false)
// don't send the stop signal to the loop if there is already one in the channel
if len(plr.stopped) == 0 {
plr.stopped <- struct{}{}
}
if plr.cancelMessageCtxOnStop {
logger.Info("canceling message context")
plr.cancelMessageCtx()
}
logger.Info("stopped periodic renewal")
}