This commit is contained in:
wangchuxiao
2023-04-21 17:51:28 +08:00
parent 7f805e89bb
commit fde574be1b
10 changed files with 202 additions and 75 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ func getCache[T any](ctx context.Context, rcClient *rockscache.Client, key strin
return t, nil
}
if v == "" {
return t, errs.ErrRecordNotFound
return t, errs.ErrRecordNotFound.Wrap("cache is not found")
}
err = json.Unmarshal([]byte(v), &t)
if err != nil {