From fb19febe2606962f1ade1eed324e037c42010958 Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Tue, 12 Nov 2019 16:27:35 -0500 Subject: [PATCH] Remove config override, not needed --- zebrad/src/commands/seed.rs | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/zebrad/src/commands/seed.rs b/zebrad/src/commands/seed.rs index 493e4325..10de643d 100644 --- a/zebrad/src/commands/seed.rs +++ b/zebrad/src/commands/seed.rs @@ -83,25 +83,9 @@ impl Service for SeedService { /// /// A DNS seeder command to spider and collect as many valid peer /// addresses as we can. +// This is not a unit-like struct because it makes Command and Options sad. #[derive(Command, Debug, Default, Options)] -pub struct SeedCmd { - /// Filter strings - #[options(free)] - filters: Vec, -} - -impl config::Override for SeedCmd { - // Process the given command line options, overriding settings - // from a configuration file using explicit flags taken from - // command-line arguments. - fn override_config(&self, mut config: ZebradConfig) -> Result { - if !self.filters.is_empty() { - config.tracing.filter = self.filters.join(","); - } - - Ok(config) - } -} +pub struct SeedCmd {} impl Runnable for SeedCmd { /// Start the application.