aboutsummaryrefslogtreecommitdiffstats
path: root/util/lamport/mem_clock.go
diff options
context:
space:
mode:
Diffstat (limited to 'util/lamport/mem_clock.go')
-rw-r--r--util/lamport/mem_clock.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/lamport/mem_clock.go b/util/lamport/mem_clock.go
index ce6f2d4d..f113b501 100644
--- a/util/lamport/mem_clock.go
+++ b/util/lamport/mem_clock.go
@@ -62,7 +62,7 @@ func (mc *MemClock) Time() Time {
// Increment is used to return the value of the lamport clock and increment it afterwards
func (mc *MemClock) Increment() (Time, error) {
- return Time(atomic.AddUint64(&mc.counter, 1) - 1), nil
+ return Time(atomic.AddUint64(&mc.counter, 1)), nil
}
// Witness is called to update our local clock if necessary after