This commit is contained in:
Laurent Le Houerou 2021-11-09 11:51:22 +04:00
parent bcbca9c41b
commit cc825b14da

View File

@ -120,6 +120,9 @@ func (c *client) Execute(ctx context.Context, action func(context.Context, *Tran
if err != nil {
return nil, errors.Wrap(err, "init transaction options")
}
for _, opt := range opts {
auth = opt(auth)
}
tx, err := action(localctx, auth)
if err != nil {
return nil, errors.Wrap(err, "executing waitable action")