Skip to content

Commit

Permalink
fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
zorancv committed Dec 18, 2024
1 parent 1379986 commit 9658d8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions store/postgres/src/relational.rs
Original file line number Diff line number Diff line change
Expand Up @@ -559,10 +559,10 @@ impl Layout {
let mut lower_now = lower_iter.next();
let mut upper_now = upper_iter.next();
// A closure to convert the entity data from the database into entity operation.
let transform = |ede: EntityDataExt,
let transform = |ede: &EntityDataExt,
entity_op: EntityOperationKind|
-> Result<(EntitySourceOperation, BlockNumber), StoreError> {
let e = EntityData::new(ede.entity, ede.data);
let e = EntityData::new(ede.entity.clone(), ede.data.clone());
let block = ede.block_number;
let entity_type = e.entity_type(&self.input_schema);
let entity = e.deserialize_with_layout::<Entity>(self, None)?;
Expand Down
2 changes: 1 addition & 1 deletion store/test-store/tests/postgres/writable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ fn read_immutable_only_range_test() {
writable.deployment_synced().unwrap();
let br: Range<BlockNumber> = 0..18;
let entity_types = vec![COUNTER2_TYPE.clone()];
let e: BTreeMap<i32, Vec<EntityWithType>> = sourceable
let e: BTreeMap<i32, Vec<EntitySourceOperation>> = sourceable
.get_range(entity_types.clone(), CausalityRegion::ONCHAIN, br.clone())
.unwrap();
assert_eq!(e.len(), 4);
Expand Down

0 comments on commit 9658d8c

Please sign in to comment.