Skip to content

RegisterPeriodicChain() returns nil if lock cannot be accquired #835

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
charleswhchan opened this issue Apr 1, 2025 · 0 comments
Open

Comments

@charleswhchan
Copy link
Contributor

charleswhchan commented 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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant