Skip to content

Commit

Permalink
Propagate errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jfldde committed Jul 23, 2024
1 parent f1f8f14 commit bbac371
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions crates/sovereign-sdk/full-node/db/sov-db/src/ledger_db/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,7 @@ impl SharedLedgerOps for LedgerDB {
let mut schema_batch = SchemaBatch::new();

schema_batch
.put::<L2RangeByL1Height>(&l1_height, &new_range)
.unwrap();
.put::<L2RangeByL1Height>(&l1_height, &new_range)?;
self.db.write_schemas(schema_batch)?;

Ok(())
Expand Down Expand Up @@ -379,8 +378,7 @@ impl SharedLedgerOps for LedgerDB {
let mut schema_batch = SchemaBatch::new();

schema_batch
.put::<SoftConfirmationStatus>(&height, &status)
.unwrap();
.put::<SoftConfirmationStatus>(&height, &status)?;
self.db.write_schemas(schema_batch)?;

Ok(())
Expand Down Expand Up @@ -494,8 +492,7 @@ impl ProverLedgerOps for LedgerDB {
let mut schema_batch = SchemaBatch::new();

schema_batch
.put::<ProverLastScannedSlot>(&(), &l1_height)
.unwrap();
.put::<ProverLastScannedSlot>(&(), &l1_height)?;
self.db.write_schemas(schema_batch)?;

Ok(())
Expand Down

0 comments on commit bbac371

Please sign in to comment.