From 2f55eec9403b4827ed4b49a1e224cded4a775a5a Mon Sep 17 00:00:00 2001 From: Tsuki Date: Sun, 17 Aug 2025 22:34:15 +0800 Subject: [PATCH] remove rate --- src/app.rs | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/app.rs b/src/app.rs index 7487319..2ef7c4e 100644 --- a/src/app.rs +++ b/src/app.rs @@ -105,19 +105,19 @@ pub async fn create_router( router_s .route("/graphql", get(not_found).post(graphql_handler)) - .route_layer( - RateLimitLayer::::builder() - .with_route( - (Method::GET, "/graphql"), - Quota::new(Duration::from_millis(100), NonZero::new(10).unwrap()), - ) - .with_route( - (Method::POST, "/graphql"), - Quota::new(Duration::from_millis(100), NonZero::new(10).unwrap()), - ) - .with_gc_interval(1000) - .default_handle_error(), - ) + // .route_layer( + // RateLimitLayer::::builder() + // .with_route( + // (Method::GET, "/graphql"), + // Quota::new(Duration::from_millis(100), NonZero::new(10).unwrap()), + // ) + // .with_route( + // (Method::POST, "/graphql"), + // Quota::new(Duration::from_millis(100), NonZero::new(10).unwrap()), + // ) + // .with_gc_interval(1000) + // .default_handle_error(), + // ) .route_service("/ws", GraphQLSubscription::new(schema)) .layer(CorsLayer::permissive()) .merge(router)