Skip to content

Commit

Permalink
fix(cloudflare): let the core check for graphiql instead
Browse files Browse the repository at this point in the history
  • Loading branch information
mogery committed Jan 26, 2024
1 parent 7729614 commit d2ad10e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cloudflare/src/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ lazy_static! {
pub async fn fetch(req: worker::Request, env: worker::Env, _: worker::Context) -> anyhow::Result<worker::Response> {
log::info!("{} {:?}", req.method().to_string(), req.url().map(|u| u.to_string()));
let req = to_request(req).await?;
if req.method() == hyper::Method::GET {
let response = graphiql(&req)?;
return to_response(response).await;
}
let env = Rc::new(env);
let app_ctx = match get_app_ctx(env, &req).await? {
Ok(app_ctx) => app_ctx,
Expand Down

1 comment on commit d2ad10e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running 30s test @ http://localhost:8000/graphql

4 threads and 100 connections

Thread Stats Avg Stdev Max +/- Stdev
Latency 6.34ms 2.73ms 34.38ms 68.66%
Req/Sec 3.98k 176.71 4.44k 91.08%

474784 requests in 30.00s, 2.38GB read

Requests/sec: 15825.01

Transfer/sec: 81.22MB

Please sign in to comment.