Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoffranca committed Sep 30, 2024
1 parent b12f904 commit e6af0b0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/lib/protobuf_config/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,12 @@ impl ProtoRepr for proto::Config {
.context("gossip_static_outbound")?,
genesis_spec: read_optional_repr(&self.genesis_spec),
rpc: read_optional_repr(&self.rpc_config),
debug_page_addr: required(&self.debug_page_addr)
.and_then(|x| Ok(x.parse()?))
.ok(),
debug_page_addr: self
.debug_page_addr
.as_ref()
.map(|x| Ok::<_, anyhow::Error>(x.parse()?))
.transpose()
.context("debug_page_addr")?,
})
}

Expand Down

0 comments on commit e6af0b0

Please sign in to comment.