Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
dabasov committed Aug 3, 2023
1 parent f134cea commit e06a891
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/go/0chain.net/blobbercore/datastore/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ func (store *postgresStore) Close() {
}

func (store *postgresStore) CreateTransaction(ctx context.Context) context.Context {
conn := ctx.Value(ContextKeyTransaction)
if conn != nil {
return ctx
}
//conn := ctx.Value(ContextKeyTransaction)
//if conn != nil {
// return ctx
//}

db := store.db.Begin()
return context.WithValue(ctx, ContextKeyTransaction, EnhanceDB(db))
Expand Down

0 comments on commit e06a891

Please sign in to comment.