Skip to content

Commit

Permalink
never replace existent transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
dabasov committed Aug 2, 2023
1 parent b786a43 commit fa801e2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions code/go/0chain.net/blobbercore/datastore/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ func (store *postgresStore) GetTransaction(ctx context.Context) *EnhancedDB {
}

func (store *postgresStore) WithTransaction(ctx context.Context, tx *gorm.DB) context.Context {
conn := ctx.Value(ContextKeyTransaction)
if conn != nil {
return ctx
}
return context.WithValue(ctx, ContextKeyTransaction, EnhanceDB(tx))
}

Expand Down

0 comments on commit fa801e2

Please sign in to comment.