From 1e9c7515be735a144574e8df4df076bbcc33665f Mon Sep 17 00:00:00 2001 From: JmPotato Date: Wed, 2 Sep 2020 12:44:11 +0800 Subject: [PATCH] Address the comment Co-authored-by: Howard Lau Signed-off-by: JmPotato --- server/tso/tso.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/tso/tso.go b/server/tso/tso.go index 911ce1dafcc..b8fd9759bfd 100644 --- a/server/tso/tso.go +++ b/server/tso/tso.go @@ -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