Skip to content

TTL should be a Diration and not an uint #9

Description

@viggin543

it's not clear if the TTL is in seconds or millis.

if ld.TTL > 0 {
		e := now.Add(time.Duration(ld.TTL) * time.Second)
		lock.ExpiresAt = &e
	}

I see its being cast to a Duration

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions