mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-19 21:04:41 +00:00
Update dependencies to get rid of the yanked deps (#4994)
* Initial attempt to upgrade hashbrown to latest to get rid of the crate warnings. * Replace `.expect()` usage with use of `const`. * Update ahash 0.7 as well * Remove unsafe code. * Update `lru` to 0.12 and fix release test errors. * Set non-blocking socket * Bump testcontainers to 0.15. * Fix lint --------- Co-authored-by: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
use crate::{config::Config, logger, server, updater};
|
||||
use clap::{App, Arg};
|
||||
use tokio::sync::oneshot;
|
||||
|
||||
pub const SERVE: &str = "serve";
|
||||
pub const RUN_UPDATER: &str = "run-updater";
|
||||
@@ -44,12 +43,9 @@ pub async fn run() -> Result<(), String> {
|
||||
(RUN_UPDATER, Some(_)) => updater::run_updater(config)
|
||||
.await
|
||||
.map_err(|e| format!("Failure: {:?}", e)),
|
||||
(SERVE, Some(_)) => {
|
||||
let (_shutdown_tx, shutdown_rx) = oneshot::channel();
|
||||
server::serve(config, shutdown_rx)
|
||||
.await
|
||||
.map_err(|e| format!("Failure: {:?}", e))
|
||||
}
|
||||
(SERVE, Some(_)) => server::serve(config)
|
||||
.await
|
||||
.map_err(|e| format!("Failure: {:?}", e)),
|
||||
_ => Err("Unsupported subcommand. See --help".into()),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user