Skip to content

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

@charleswhchan

Description

@charleswhchan

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions