Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information