From cc825b14dac6bfc05e1dca3bc73180c94079c719 Mon Sep 17 00:00:00 2001 From: Laurent Le Houerou Date: Tue, 9 Nov 2021 11:51:22 +0400 Subject: [PATCH] wip --- client.go | 3 +++ 1 file changed, 3 insertions(+) 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")