Skip to content

Commit

Permalink
removed mut refs
Browse files Browse the repository at this point in the history
  • Loading branch information
Oscar-Pepper committed Mar 4, 2024
1 parent 714603f commit e4b7044
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zcash_client_backend/src/data_api/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,10 @@ pub trait BlockCache: BlockSource + Send + Sync {
fn cache_tip(&self, range: Option<&ScanRange>) -> Result<Option<BlockHeight>, Self::Error>;

/// Inserts a set of compact blocks into the block cache.
fn insert(&mut self, compact_blocks: Vec<CompactBlock>) -> Result<(), Self::Error>;
fn insert(&self, compact_blocks: Vec<CompactBlock>) -> Result<(), Self::Error>;

/// Removes all cached blocks above a specified block height.
fn truncate(&mut self, block_height: BlockHeight) -> Result<(), Self::Error>;
fn truncate(&self, block_height: BlockHeight) -> Result<(), Self::Error>;

/// Deletes a range of compact blocks from the block cache.
fn delete(&self, range: &ScanRange) -> Result<(), Self::Error>;
Expand Down

0 comments on commit e4b7044

Please sign in to comment.