From 2e9b4b2d9bba41a44226c275c7c806b1ea816557 Mon Sep 17 00:00:00 2001 From: Roman Golov Date: Wed, 11 Sep 2024 23:04:46 +0300 Subject: [PATCH] Use balancer connection with metadata for operation service. --- CHANGELOG.md | 1 + driver.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 277cc9c15..7e85e0a28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +* Fixed metadata for operation service connection * Fixed composing query traces in call `db.Query.Do[Tx]` using option `query.WithTrace` ## v3.80.2 diff --git a/driver.go b/driver.go index 2b1e6dd6a..3b3081389 100644 --- a/driver.go +++ b/driver.go @@ -519,7 +519,7 @@ func (d *Driver) connect(ctx context.Context) (err error) { d.operation = xsync.OnceValue(func() (*operation.Client, error) { return operation.New(xcontext.ValueOnly(ctx), - d.pool.Get(endpoint.New(d.config.Endpoint())), + d.balancer, ), nil })