Skip to content

Commit

Permalink
pindexer: ✨ add IndexerExt extension trait
Browse files Browse the repository at this point in the history
  • Loading branch information
cratelyn committed Jun 14, 2024
1 parent 9f18d5d commit 114afcd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/bin/pindexer/src/indexer_ext.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
pub trait IndexerExt: Sized {
fn with_default_penumbra_app_views(self) -> Self;
}

impl IndexerExt for cometindex::Indexer {
fn with_default_penumbra_app_views(self) -> Self {
self.with_index(crate::shielded_pool::fmd::ClueSet {})
}
}
1 change: 1 addition & 0 deletions crates/bin/pindexer/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub use cometindex::{AppView, Indexer};

mod indexer_ext;
pub mod shielded_pool;

0 comments on commit 114afcd

Please sign in to comment.