diff --git a/chain/chain/src/test_utils/kv_runtime.rs b/chain/chain/src/test_utils/kv_runtime.rs index c00f15cd294..844e7796eed 100644 --- a/chain/chain/src/test_utils/kv_runtime.rs +++ b/chain/chain/src/test_utils/kv_runtime.rs @@ -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 { + fn num_shards(&self, _epoch_id: &EpochId) -> Result { Ok(self.num_shards) } diff --git a/chain/epoch-manager/src/adapter.rs b/chain/epoch-manager/src/adapter.rs index 5df2deddf8d..a4674e33590 100644 --- a/chain/epoch-manager/src/adapter.rs +++ b/chain/epoch-manager/src/adapter.rs @@ -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; + fn num_shards(&self, epoch_id: &EpochId) -> Result; /// Number of Reed-Solomon parts we split each chunk into. ///