Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

update ratelimiter #897

Merged
merged 2 commits into from
Mar 27, 2024

Switch to old scheduler

ff934d2
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

update ratelimiter #897

Switch to old scheduler
ff934d2
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy succeeded Mar 27, 2024 in 0s

clippy

7 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 7
Note 0
Help 0

Versions

  • rustc 1.77.0 (aedd173a2 2024-03-17)
  • cargo 1.77.0 (3fe68eabf 2024-02-29)
  • clippy 0.1.77 (aedd173 2024-03-17)

Annotations

Check warning on line 101 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variable does not need to be mutable

warning: variable does not need to be mutable
   --> src/main.rs:101:9
    |
101 |     let mut labrinth_config = labrinth::app_setup(
    |         ----^^^^^^^^^^^^^^^
    |         |
    |         help: remove this `mut`
    |
    = note: `#[warn(unused_mut)]` on by default

Check warning on line 14 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `std::time::Duration`

warning: unused import: `std::time::Duration`
  --> src/main.rs:14:5
   |
14 | use std::time::Duration;
   |     ^^^^^^^^^^^^^^^^^^^

Check warning on line 12 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `std::num::NonZeroU32`

warning: unused import: `std::num::NonZeroU32`
  --> src/main.rs:12:5
   |
12 | use std::num::NonZeroU32;
   |     ^^^^^^^^^^^^^^^^^^^^

Check warning on line 9 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `KeyedRateLimiter`

warning: unused import: `KeyedRateLimiter`
 --> src/main.rs:9:33
  |
9 | use labrinth::util::ratelimit::{KeyedRateLimiter, RateLimit};
  |                                 ^^^^^^^^^^^^^^^^

Check warning on line 5 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused imports: `Quota`, `RateLimiter`

warning: unused imports: `Quota`, `RateLimiter`
 --> src/main.rs:5:16
  |
5 | use governor::{Quota, RateLimiter};
  |                ^^^^^  ^^^^^^^^^^^

Check warning on line 4 in src/main.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `governor::middleware::StateInformationMiddleware`

warning: unused import: `governor::middleware::StateInformationMiddleware`
 --> src/main.rs:4:5
  |
4 | use governor::middleware::StateInformationMiddleware;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default

Check warning on line 220 in src/database/redis.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

use of deprecated method `chrono::TimeZone::timestamp`: use `timestamp_opt()` instead

warning: use of deprecated method `chrono::TimeZone::timestamp`: use `timestamp_opt()` instead
   --> src/database/redis.rs:220:24
    |
220 |                 if Utc.timestamp(val.iat + ACTUAL_EXPIRY, 0) < current_time {
    |                        ^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default