Skip to content
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

lease: use monotime in time.Time for Go 1.9 #8507

Merged
merged 1 commit into from
Sep 7, 2017

Commits on Sep 7, 2017

  1. lease: use monotime in time.Time for Go 1.9

    The golang/time package tracks monotonic time in each time.Time
    returned by time.Now function for Go 1.9.
    
    Use time.Time to measure whether a lease is expired and remove
    previous pkg/monotime. Use zero time.Time to mean forever. No
    expiration when expiry.IsZero() is true.
    lorneli committed Sep 7, 2017
    Configuration menu
    Copy the full SHA
    63aa64d View commit details
    Browse the repository at this point in the history