Skip to content

Commit

Permalink
fix: server error panic (#978)
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath authored Jan 18, 2024
1 parent 8776b18 commit 1aa64ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
target/
target/
.tailcall.schema.json
5 changes: 3 additions & 2 deletions src/cli/server/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ impl Server {
.enable_all()
.build()?;

let _ = runtime.spawn(async { self.start().await }).await?;
let result = runtime.spawn(async { self.start().await }).await?;
runtime.shutdown_background();

Ok(())
result
}
}

1 comment on commit 1aa64ac

@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.42ms 2.69ms 26.10ms 69.13%
Req/Sec 3.93k 188.02 4.25k 92.25%

468754 requests in 30.00s, 2.35GB read

Requests/sec: 15623.87

Transfer/sec: 80.19MB

Please sign in to comment.