init logger in aquatic_cli_helpers crate

This commit is contained in:
Joakim Frostegård 2020-08-02 21:21:58 +02:00
parent 427c0bc7c3
commit 8d58f8bb70
15 changed files with 113 additions and 119 deletions

View file

@ -32,6 +32,9 @@ pub fn main(){
}
impl aquatic_cli_helpers::Config for Config {}
fn run(config: Config) -> ::anyhow::Result<()> {
if config.handler.weight_announce + config.handler.weight_connect + config.handler.weight_scrape == 0 {
panic!("Error: at least one weight must be larger than zero.");