Skip to content

Commit

Permalink
fix(internal): Update transaction isolation level to ReadCommitted
Browse files Browse the repository at this point in the history
  • Loading branch information
tolgaOzen committed Feb 6, 2025
1 parent 358b69d commit ed9c659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/storage/postgres/dataWriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type DataWriter struct {
func NewDataWriter(database *db.Postgres) *DataWriter {
return &DataWriter{
database: database,
txOptions: pgx.TxOptions{IsoLevel: pgx.Serializable, AccessMode: pgx.ReadWrite},
txOptions: pgx.TxOptions{IsoLevel: pgx.ReadCommitted, AccessMode: pgx.ReadWrite},
}
}

Expand Down

0 comments on commit ed9c659

Please sign in to comment.