Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Nov 28, 2024
1 parent c72b34a commit c293e72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ee/tabby-webserver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ mod hub;
mod jwt;
mod oauth;
mod path;
mod rate_limit;
mod routes;
mod service;
mod webserver;
mod rate_limit;

#[cfg(test)]
pub use service::*;
Expand Down
3 changes: 2 additions & 1 deletion ee/tabby-webserver/src/rate_limit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ impl UserRateLimiter {

#[cfg(test)]
mod tests {


use super::*;
use tokio::time::{sleep, Duration};

#[tokio::test]
async fn test_user_rate_limiter() {
Expand Down
3 changes: 1 addition & 2 deletions ee/tabby-webserver/src/service/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ use tabby_schema::{
AsID, AsRowid, CoreError, Result, ServiceLocator,
};

use crate::rate_limit::UserRateLimiter;

use self::{
analytic::new_analytic_service, email::new_email_service, license::new_license_service,
};
use crate::rate_limit::UserRateLimiter;
struct ServerContext {
db_conn: DbConn,
mail: Arc<dyn EmailService>,
Expand Down

0 comments on commit c293e72

Please sign in to comment.