Skip to content

Commit f063216

Browse files
committed
chore: PR feedback
1 parent 979fefe commit f063216

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

testnet/stacks-node/src/config.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2370,16 +2370,7 @@ impl ConnectionOptionsFile {
23702370
hint_replicas_res
23712371
})
23722372
.transpose()?
2373-
.and_then(|stackerdb_replicas_list| {
2374-
// coalesce to a hashmap, but don't worry about duplicate entries
2375-
// (garbage in, garbage out)
2376-
let stackerdb_hint_replicas: HashMap<
2377-
QualifiedContractIdentifier,
2378-
Vec<NeighborAddress>,
2379-
> = stackerdb_replicas_list.into_iter().collect();
2380-
2381-
Some(stackerdb_hint_replicas)
2382-
})
2373+
.map(HashMap::from_iter)
23832374
.unwrap_or(default.stackerdb_hint_replicas),
23842375
..default
23852376
})

0 commit comments

Comments
 (0)