fix: deleteRevKey return haveNoTaskErr (#7)

Browse Source
main
git 2024-05-19 23:32:32 +08:00 committed by GitHub
parent 9dada0a9b5
commit ac6351386e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -22,8 +22,9 @@ func deleteRevKey(ctx context.Context, kv clientv3.KV, key string, rev int64) er
return err return err
} }
// 有写入或者删除竞争
if !txnresp.Succeeded { if !txnresp.Succeeded {
return fmt.Errorf("delete key failed") return fmt.Errorf("delete key failed: %s: %w", key, haveNoTaskErr)
} }
return nil return nil