Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddOnTop committed May 23, 2024
1 parent a483d81 commit 399f43f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions src/core/lambda/io.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use core::future::Future;
use std::hash::{Hash, Hasher};
use std::pin::Pin;
use std::sync::Arc;

Expand Down Expand Up @@ -164,12 +163,7 @@ impl<'a, Ctx: ResolverContextLike<'a> + Sync + Send> CacheKey<EvaluationContext<
IO::Http { req_template, .. } => req_template.cache_key(ctx),
IO::Grpc { req_template, .. } => req_template.cache_key(ctx),
IO::GraphQL { req_template, .. } => req_template.cache_key(ctx),
IO::Js { name: method } => {
// TODO
let mut hasher = std::hash::DefaultHasher::new();
method.hash(&mut hasher);
hasher.finish()
}
IO::Js { .. } => None,

Check warning on line 166 in src/core/lambda/io.rs

View check run for this annotation

Codecov / codecov/patch

src/core/lambda/io.rs#L166

Added line #L166 was not covered by tests
}
}
}
Expand Down
1 change: 0 additions & 1 deletion src/core/worker.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

use crate::core::{Response, WorkerIO};

pub struct DefaultJsRuntime;
Expand Down

1 comment on commit 399f43f

@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.71ms 3.20ms 130.75ms 75.14%
Req/Sec 3.78k 190.81 4.29k 91.50%

451094 requests in 30.01s, 2.26GB read

Requests/sec: 15029.82

Transfer/sec: 77.14MB

Please sign in to comment.