Skip to content

Commit

Permalink
Merge branch 'master' into nikurt-protocol-config
Browse files Browse the repository at this point in the history
  • Loading branch information
nikurt committed Oct 17, 2023
2 parents 95d28a6 + 2f16f45 commit ae20d1d
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 ae20d1d

Please sign in to comment.