mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
Update comments in StrictMonotonicCounter
Fix comment formatting and clarify description.
This commit is contained in:
parent
8e509ec5a8
commit
a106a9542b
@ -5,8 +5,8 @@ import "sync/atomic"
|
||||
// StrictMonotonicCounter is a helper struct which implements a strict monotonic
|
||||
// counter. StrictMonotonicCounter is implemented using atomic operations and
|
||||
// doesn't allow to set a value which is lower or equal to the already stored
|
||||
// ne. The counter is implemented solely with non-blocking atomic operations for
|
||||
// concurrency safety.
|
||||
// one. The counter is implemented solely with non-blocking atomic operations
|
||||
// for concurrency safety.
|
||||
type StrictMonotonicCounter struct {
|
||||
atomicCounter uint64
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user