Skip to content

Commit

Permalink
custom length
Browse files Browse the repository at this point in the history
  • Loading branch information
RealHinome authored Aug 24, 2024
1 parent 7f55490 commit 771e710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphql/api/src/helpers/ranking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ impl Ranker {
}

/// Get a single ranking from multiple sources.
pub async fn get_rank(&self) -> Result<Vec<String>, Error> {
pub async fn get_rank(&self, length: u32) -> Result<Vec<String>, Error> {
let mut result = Vec::new();

if let Some(squid) = &self.squid {
result.append(
&mut squid.write().await.leaderboard().await.map_err(
&mut squid.write().await.leaderboard(length).await.map_err(
|error| {
Error::new(
Unspecified,
Expand Down

0 comments on commit 771e710

Please sign in to comment.