Skip to content

Commit

Permalink
Update etcd error
Browse files Browse the repository at this point in the history
Signed-off-by: JmPotato <[email protected]>
  • Loading branch information
JmPotato committed Sep 2, 2020
1 parent 1e9c751 commit 64f4d61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/tso/tso.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ func (t *timestampOracle) saveTimestamp(leadership *election.Leadership, ts time
Then(clientv3.OpPut(key, string(data))).
Commit()
if err != nil {
return errs.ErrEtcdTxn.Wrap(err).GenWithStackByCause()
return errs.ErrEtcdKVPut.Wrap(err).GenWithStackByCause()
}
if !resp.Succeeded {
return errs.ErrSaveTimestamp.FastGenByArgs("maybe we lost leader")
return errs.ErrEtcdTxn.FastGenByArgs()
}

t.lastSavedTime.Store(ts)
Expand Down

0 comments on commit 64f4d61

Please sign in to comment.