File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
54
54
// Start the background thread periodically persisting download counts to the database.
55
55
downloads_counter_thread ( app. clone ( ) ) ;
56
56
57
- let app = cargo_registry:: build_handler ( app) ;
57
+ let handler = cargo_registry:: build_handler ( app) ;
58
58
59
59
// On every server restart, ensure the categories available in the database match
60
60
// the information in *src/categories.toml*.
@@ -103,7 +103,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
103
103
. build ( )
104
104
. unwrap ( ) ;
105
105
106
- let handler = Arc :: new ( conduit_hyper:: BlockingHandler :: new ( app ) ) ;
106
+ let handler = Arc :: new ( conduit_hyper:: BlockingHandler :: new ( handler ) ) ;
107
107
let make_service =
108
108
hyper:: service:: make_service_fn ( move |socket : & hyper:: server:: conn:: AddrStream | {
109
109
let addr = socket. remote_addr ( ) ;
@@ -134,7 +134,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
134
134
println ! ( "Booting with a civet based server" ) ;
135
135
let mut cfg = civet:: Config :: new ( ) ;
136
136
cfg. port ( port) . threads ( threads) . keep_alive ( true ) ;
137
- Civet ( CivetServer :: start ( cfg, app ) . unwrap ( ) )
137
+ Civet ( CivetServer :: start ( cfg, handler ) . unwrap ( ) )
138
138
} ;
139
139
140
140
println ! ( "listening on port {}" , port) ;
You can’t perform that action at this time.
0 commit comments