Skip to content

Commit

Permalink
fix docker image build
Browse files Browse the repository at this point in the history
  • Loading branch information
harshadptl committed Oct 13, 2023
1 parent 577467d commit b57423f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ledger/src/data_model/effects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ impl TxnEffect {

// (1), within this transaction
//let v = vec![];
let iss_nums = self.new_issuance_nums.entry(code).or_insert_with(Vec::new);
let iss_nums = self.new_issuance_nums.entry(code).or_default();

if let Some(last_num) = iss_nums.last() {
if seq_num <= *last_num {
Expand Down
8 changes: 4 additions & 4 deletions src/ledger/src/staking/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ impl Staking {
self.delegation_info
.end_height_map
.entry(end_height)
.or_insert_with(BTreeSet::new)
.or_default()
.insert(owner);

// There should be no failure here !!
Expand Down Expand Up @@ -903,7 +903,7 @@ impl Staking {
self.delegation_info
.end_height_map
.entry(h + CFG.checkpoint.unbond_block_cnt)
.or_insert_with(BTreeSet::new)
.or_default()
.insert(*addr);
}

Expand Down Expand Up @@ -995,7 +995,7 @@ impl Staking {
self.delegation_info
.end_height_map
.entry(h + CFG.checkpoint.unbond_block_cnt)
.or_insert_with(BTreeSet::new)
.or_default()
.insert(pu.new_delegator_id);

// update delegator entries for pu target_validator
Expand Down Expand Up @@ -1078,7 +1078,7 @@ impl Staking {
self.delegation_info
.end_height_map
.entry(end_height)
.or_insert_with(BTreeSet::new)
.or_default()
.insert(addr.to_owned());
Ok(())
} else {
Expand Down

0 comments on commit b57423f

Please sign in to comment.