Skip to content

Commit

Permalink
chore: fix warnings for rust 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
getchoo authored and Scrumplex committed Nov 12, 2024
1 parent 8516529 commit 163898a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/storage/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl Storage {

let mut con = self.client.get_multiplexed_async_connection().await?;
// Just store some value. We only care about the presence of this key
con.set_ex(key, 0, 7 * 24 * 60 * 60).await?; // 1 week
() = con.set_ex(key, 0, 7 * 24 * 60 * 60).await?; // 1 week

Ok(())
}
Expand All @@ -54,7 +54,8 @@ impl Storage {
debug!("Caching launcher version as {version}");

let mut con = self.client.get_multiplexed_async_connection().await?;
con.set_ex(LAUNCHER_VERSION_KEY, version, 24 * 60 * 60)
() = con
.set_ex(LAUNCHER_VERSION_KEY, version, 24 * 60 * 60)
.await?; // 1 day

Ok(())
Expand All @@ -73,7 +74,8 @@ impl Storage {
debug!("Caching stargazer count as {stargazers}");

let mut con = self.client.get_multiplexed_async_connection().await?;
con.set_ex(LAUNCHER_STARGAZER_KEY, stargazers, 60 * 60)
() = con
.set_ex(LAUNCHER_STARGAZER_KEY, stargazers, 60 * 60)
.await?;

Ok(())
Expand Down

0 comments on commit 163898a

Please sign in to comment.