Skip to content

Commit

Permalink
fix: compile-time merge errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jcnelson committed Aug 15, 2023
1 parent 39ac9c6 commit 9b85505
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion stackslib/src/net/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2557,7 +2557,7 @@ impl ConversationHttp {
let resp = HttpResponseType::NotFound(response_metadata, "No such StackerDB".into());
return resp.send(http, fd).and_then(|_| Ok(()));
}
if let Err(e) = tx.try_replace_chunk(
if let Err(_e) = tx.try_replace_chunk(
stackerdb_contract_id,
&stackerdb_chunk.get_slot_metadata(),
&stackerdb_chunk.data,
Expand Down
2 changes: 1 addition & 1 deletion stackslib/src/net/stackerdb/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ impl StackerDBConfig {
.expect_u128();

if chunk_size > STACKERDB_MAX_CHUNK_SIZE as u128 {
debug!(
let reason = format!(
"Contract {} stipulates a chunk size beyond STACKERDB_MAX_CHUNK_SIZE",
contract_id
);
Expand Down
11 changes: 2 additions & 9 deletions stackslib/src/net/stackerdb/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1036,16 +1036,9 @@ impl<NC: NeighborComms> StackerDBSync<NC> {
&naddr
);

if let Some((slot_id, slot_version)) = self.chunk_push_receipts.get(&naddr) {
if let Some((slot_id, _)) = self.chunk_push_receipts.get(&naddr) {
self.need_resync = self.need_resync
|| self.add_pushed_chunk(
network,
naddr,
new_chunk_inv,
*slot_id,
*slot_version,
);
self.add_pushed_chunk(naddr, new_chunk_inv, *slot_id);
|| self.add_pushed_chunk(network, naddr, new_chunk_inv, *slot_id);
}
}

Expand Down

0 comments on commit 9b85505

Please sign in to comment.