Skip to content

Commit

Permalink
Replace ReadOnlyTransaction() with Single() (GoogleCloudPlatform#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
manitgupta authored Jan 7, 2025
1 parent 534145a commit 1a751d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion accessors/clients/spanner/client/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
}

Expand Down

0 comments on commit 1a751d7

Please sign in to comment.