Skip to content

Commit

Permalink
Address the comment
Browse files Browse the repository at this point in the history
Co-authored-by: Howard Lau <howardlau1999@hotmail.com>
Signed-off-by: JmPotato <ghzpotato@gmail.com>
  • Loading branch information
JmPotato and howardlau1999 authored Sep 2, 2020
1 parent 07c7f43 commit 1e9c751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/tso/tso.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (t *timestampOracle) getTimestampPath() string {
func (t *timestampOracle) loadTimestamp() (time.Time, error) {
data, err := etcdutil.GetValue(t.client, t.getTimestampPath())
if err != nil {
return typeutil.ZeroTime, errs.ErrEtcdKVGet.Wrap(err).FastGenWithCause()
return typeutil.ZeroTime, err
}
if len(data) == 0 {
return typeutil.ZeroTime, nil
Expand Down

0 comments on commit 1e9c751

Please sign in to comment.