Skip to content

Commit

Permalink
report
Browse files Browse the repository at this point in the history
Signed-off-by: lhy1024 <[email protected]>
  • Loading branch information
lhy1024 committed Jan 22, 2025
1 parent 577b1cc commit 51f54a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/kv/etcd_kv.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ type etcdTxn struct {
func (kv *etcdKVBase) RunInTxn(ctx context.Context, f func(txn Txn) error) error {
txn := &etcdTxn{
kv: kv,
ctx: ctx,
ctx: clientv3.WithRequireLeader(ctx),
}
err := f(txn)
if err != nil {
Expand Down

0 comments on commit 51f54a4

Please sign in to comment.