Skip to content

Commit e846e5a

Browse files
ndyakovCopilot
andauthored
Update tx.go
Co-authored-by: Copilot <[email protected]>
1 parent 1f8b660 commit e846e5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tx.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type Tx struct {
2424
func (c *Client) newTx() *Tx {
2525
tx := Tx{
2626
baseClient: baseClient{
27-
opt: c.opt.clone(), // Clone options to avoid sharing HitlessUpgradeConfig
27+
opt: c.opt.clone(), // Clone options to avoid sharing mutable state between transaction and parent client
2828
connPool: pool.NewStickyConnPool(c.connPool),
2929
hooksMixin: c.hooksMixin.clone(),
3030
pushProcessor: c.pushProcessor, // Copy push processor from parent client

0 commit comments

Comments
 (0)