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

Use atomic.Bool instead of atomic.Value for leader status #4461

Merged
merged 1 commit into from
May 22, 2024

Commits on May 22, 2024

  1. Use atomic.Bool instead of atomic.Value for leader status

    Lease pool's leader status field was an atomic.Value that is always used
    for booleans only. This requires pre-initializing it through
    Store(false) and also typecasting when retrieving.
    
    By using atomic.Bool, the zero value is false and the value type is
    always bool.
    
    Signed-off-by: Kimmo Lehto <[email protected]>
    kke committed May 22, 2024
    Configuration menu
    Copy the full SHA
    6282754 View commit details
    Browse the repository at this point in the history