Skip to content

Commit cb06e8e

Browse files
committed
DO NOT MERGE testing travis config, will rebase out
1 parent d2ed9de commit cb06e8e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/bin/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn main() {
3131
let client = Client::new();
3232

3333
let app = App::new(&config, Some(client));
34-
let app = cargo_registry::build_handler(Arc::new(app));
34+
let app = cargo_registry::build_handler(Arc::new(app), 42);
3535

3636
// On every server restart, ensure the categories available in the database match
3737
// the information in *src/categories.toml*.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ pub enum Replica {
8282
/// Configures routes, sessions, logging, and other middleware.
8383
///
8484
/// Called from *src/bin/server.rs*.
85-
pub fn build_handler(app: Arc<App>) -> MiddlewareBuilder {
85+
pub fn build_handler(app: Arc<App>, unused_argument: i32) -> MiddlewareBuilder {
8686
let endpoints = router::build_router(&app);
8787
middleware::build_middleware(app, endpoints)
8888
}

src/tests/all.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ fn build_app(
161161
let app = App::new(&config, client);
162162
t!(t!(app.diesel_database.get()).begin_test_transaction());
163163
let app = Arc::new(app);
164-
let handler = cargo_registry::build_handler(Arc::clone(&app));
164+
let handler = cargo_registry::build_handler(Arc::clone(&app), 42);
165165
(app, handler)
166166
}
167167

0 commit comments

Comments
 (0)