Skip to content

Commit 2b3eb1f

Browse files
committed
Refactoring stake_pool_store
1 parent 57af397 commit 2b3eb1f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mithril-aggregator/src/database/repository/stake_pool_store.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,7 @@ impl StakeStorer for StakePoolStore {
9191
#[async_trait]
9292
impl StakeDistributionRetriever for StakePoolStore {
9393
async fn retrieve(&self, epoch: Epoch) -> StdResult<Option<StakeDistribution>> {
94-
let stake_distribution = self.get_stakes(epoch).await?;
95-
96-
Ok(stake_distribution)
94+
self.get_stakes(epoch).await
9795
}
9896
}
9997

0 commit comments

Comments
 (0)