Skip to content

Commit

Permalink
fix: release builds (#2076)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
amitksingh1490 and renovate[bot] authored May 30, 2024
1 parent 96eb8fa commit 36105ec
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,15 @@ jobs:
os: windows-latest
rust: stable
target: aarch64-pc-windows-msvc
features: --no-default-features --features cli
libc: msvc
ext: ".exe"

- build: win32-ia32-gnu
os: ubuntu-latest
rust: stable
target: i686-pc-windows-gnu
features: --no-default-features --features cli
cross: true
libc: glibc
ext: ".exe"
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ opentelemetry-otlp = { version = "0.15.0", features = [
"tls-roots",
], optional = true }
opentelemetry-system-metrics = { version = "0.1.8", optional = true }
tailcall-http-cache = {path = "tailcall-http-cache", optional = true }
tailcall-http-cache = { path = "tailcall-http-cache", optional = true }
tailcall-version = { path = "./tailcall-version", optional = true }


Expand Down
10 changes: 8 additions & 2 deletions src/cli/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ fn init_http_worker_io(
#[cfg(feature = "js")]
return Some(super::javascript::init_worker_io(script?));
#[cfg(not(feature = "js"))]
None
{
let _ = script;
None
}
}

fn init_resolver_worker_io(
Expand All @@ -49,7 +52,10 @@ fn init_resolver_worker_io(
#[cfg(feature = "js")]
return Some(super::javascript::init_worker_io(script?));
#[cfg(not(feature = "js"))]
None
{
let _ = script;
None
}
}

// Provides access to http in native rust environment
Expand Down

1 comment on commit 36105ec

@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.59ms 2.95ms 82.91ms 71.64%
Req/Sec 3.84k 123.04 4.28k 86.08%

458120 requests in 30.01s, 2.30GB read

Requests/sec: 15268.00

Transfer/sec: 78.37MB

Please sign in to comment.