From 1a751d7d72a319e0ca2d2c3ff8563548674e4780 Mon Sep 17 00:00:00 2001 From: Manit Gupta Date: Tue, 7 Jan 2025 15:46:40 +0530 Subject: [PATCH] Replace ReadOnlyTransaction() with Single() (#984) --- accessors/clients/spanner/client/interface.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accessors/clients/spanner/client/interface.go b/accessors/clients/spanner/client/interface.go index 3ef01d8e2..170d12471 100644 --- a/accessors/clients/spanner/client/interface.go +++ b/accessors/clients/spanner/client/interface.go @@ -46,7 +46,7 @@ func (c *SpannerClientImpl) Refresh(ctx context.Context, dbURI string) error { } func (c *SpannerClientImpl) Single() ReadOnlyTransaction { - rotxn := c.spannerClient.ReadOnlyTransaction() + rotxn := c.spannerClient.Single() return &ReadOnlyTransactionImpl{rotxn: rotxn} }