chore: refine getItem (#6)

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

View File

@ -56,11 +56,7 @@ func getItem(ctx context.Context, c *clientv3.Client, prefix string, opts []clie
// nothing yet; wait on elements // nothing yet; wait on elements
if len(resp.Kvs) == 0 { if len(resp.Kvs) == 0 {
ev, err := waitPrefixEvents( ev, err := waitPrefixEvents(ctx, c, prefix, resp.Header.Revision)
ctx,
c,
prefix,
resp.Header.Revision)
if err != nil { if err != nil {
return nil, err return nil, err
} }