Skip to content

Commit

Permalink
penumbra: fix extra replaces and run fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanor committed Dec 25, 2024
1 parent 60d6dd0 commit 96636c2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 17 deletions.
12 changes: 2 additions & 10 deletions crates/bin/pd/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,18 +236,10 @@ pub enum NetworkCommand {
#[clap(long, env = "penumbra_sdk_PD_TM_EXTERNAL_ADDR")]
external_address: Option<SocketAddr>,
/// When generating Tendermint config, use this socket to bind the Tendermint RPC service.
#[clap(
long,
env = "PENUMBRA_PD_TM_RPC_BIND",
default_value = "0.0.0.0:26657"
)]
#[clap(long, env = "PENUMBRA_PD_TM_RPC_BIND", default_value = "0.0.0.0:26657")]
tendermint_rpc_bind: SocketAddr,
/// When generating Tendermint config, use this socket to bind the Tendermint P2P service.
#[clap(
long,
env = "PENUMBRA_PD_TM_P2P_BIND",
default_value = "0.0.0.0:26656"
)]
#[clap(long, env = "PENUMBRA_PD_TM_P2P_BIND", default_value = "0.0.0.0:26656")]
tendermint_p2p_bind: SocketAddr,
/// Leave the downloaded archive file on disk after extraction.
#[clap(long, env = "PENUMBRA_PD_LEAVE_ARCHIVE", action)]
Expand Down
4 changes: 2 additions & 2 deletions crates/bin/pindexer/src/indexer_ext.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use std::str::FromStr;

pub trait IndexerExt: Sized {
fn with_default_penumbra_sdk_app_views(self) -> Self;
fn with_default_penumbra_app_views(self) -> Self;
}

impl IndexerExt for cometindex::Indexer {
fn with_default_penumbra_sdk_app_views(self) -> Self {
fn with_default_penumbra_app_views(self) -> Self {
self.with_index(Box::new(crate::block::Block {}))
.with_index(Box::new(crate::stake::ValidatorSet {}))
.with_index(Box::new(crate::stake::Slashings {}))
Expand Down
2 changes: 1 addition & 1 deletion crates/bin/pindexer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use pindexer::{Indexer, IndexerExt as _, Options};
async fn main() -> Result<()> {
Indexer::new(Options::parse())
.with_default_tracing()
.with_default_penumbra_sdk_app_views()
.with_default_penumbra_app_views()
.run()
.await?;

Expand Down
5 changes: 1 addition & 4 deletions crates/core/app/tests/common/test_node_builder_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ pub trait BuilderExt: Sized {

impl BuilderExt for Builder {
type Error = anyhow::Error;
fn with_penumbra_auto_app_state(
mut self,
app_state: AppState,
) -> Result<Self, Self::Error> {
fn with_penumbra_auto_app_state(mut self, app_state: AppState) -> Result<Self, Self::Error> {
let Self { keyring, .. } = &self;
let mut content = match app_state {
AppState::Content(c) => c,
Expand Down

0 comments on commit 96636c2

Please sign in to comment.