Skip to content

Commit

Permalink
nit: use correct type (#9696)
Browse files Browse the repository at this point in the history
Even though the types are just aliases, still use correct type
definitions.
  • Loading branch information
akhi3030 authored and nikurt committed Oct 20, 2023
1 parent 2e8b691 commit 48140d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chain/chain/src/test_utils/kv_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ impl EpochManagerAdapter for MockEpochManager {
self.hash_to_valset.write().unwrap().contains_key(epoch_id)
}

fn num_shards(&self, _epoch_id: &EpochId) -> Result<ShardId, EpochError> {
fn num_shards(&self, _epoch_id: &EpochId) -> Result<NumShards, EpochError> {
Ok(self.num_shards)
}

Expand Down
2 changes: 1 addition & 1 deletion chain/epoch-manager/src/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub trait EpochManagerAdapter: Send + Sync {
fn epoch_exists(&self, epoch_id: &EpochId) -> bool;

/// Get current number of shards.
fn num_shards(&self, epoch_id: &EpochId) -> Result<ShardId, EpochError>;
fn num_shards(&self, epoch_id: &EpochId) -> Result<NumShards, EpochError>;

/// Number of Reed-Solomon parts we split each chunk into.
///
Expand Down

0 comments on commit 48140d0

Please sign in to comment.