Skip to content

Commit

Permalink
Auto merge of #2523 - jtgeibel:update/conduit-hyper, r=JohnTitor
Browse files Browse the repository at this point in the history
Bump to the latest conduit-hyper

The latest upstream changes should allow us to try enabling hyper in
production. All tasks tracked in #2204 should now be completed.

r? @JohnTitor
  • Loading branch information
bors committed May 25, 2020
2 parents 3dc369c + 4669a6f commit 1eeeb94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 34 deletions.
34 changes: 2 additions & 32 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ conduit-router = "0.9.0-alpha.2"
conduit-static = "0.9.0-alpha.3"
conduit-git-http-backend = "0.9.0-alpha.2"
civet = "0.12.0-alpha.3"
conduit-hyper = "0.3.0-alpha.2"
conduit-hyper = "0.3.0-alpha.3"
http = "0.2"

futures-util = "0.3"
Expand Down
4 changes: 3 additions & 1 deletion src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,12 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut rt = tokio::runtime::Builder::new()
.threaded_scheduler()
.enable_all()
.core_threads(4)
.max_threads(threads as usize)
.build()
.unwrap();

let handler = Arc::new(conduit_hyper::BlockingHandler::new(app, threads as usize));
let handler = Arc::new(conduit_hyper::BlockingHandler::new(app));
let make_service =
hyper::service::make_service_fn(move |socket: &hyper::server::conn::AddrStream| {
let addr = socket.remote_addr();
Expand Down

0 comments on commit 1eeeb94

Please sign in to comment.