diff --git a/client.go b/client.go index 2a068ad..e8f29c6 100644 --- a/client.go +++ b/client.go @@ -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")