#835·machinery

RegisterPeriodicChain() returns nil if lock cannot be accquired

Author: charleswhchanCreated Apr 1, 2025Updated Apr 1, 2025

Is there a bug in the following code:

		err := server.lock.LockWithRetries(utils.GetLockName(name, spec), schedule.Next(time.Now()).UnixNano()-1)
		if err != nil {
			return        # returns nil; expect err
		}

See: