Skip to content

Commit

Permalink
fix latestwm timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Hitenjain14 committed May 15, 2024
1 parent 358c397 commit 022066d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zboxcore/sdk/commitworker.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ func (commitreq *CommitRequest) processCommit() {
commitreq.result = ErrorCommitResult(e.Error())
return
}
if commitreq.timestamp == lR.LatestWM.Timestamp {
commitreq.timestamp += 1
if commitreq.timestamp <= lR.LatestWM.Timestamp {
commitreq.timestamp = lR.LatestWM.Timestamp + 1
}

rootRef.CalculateHash()
Expand Down

0 comments on commit 022066d

Please sign in to comment.