From e2376b4a56eb9817f9249df9d7852f823e982504 Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Sat, 25 Mar 2023 10:54:49 -0700 Subject: [PATCH] Drop override flag, just use the global flag. --- cmd/raiju/raiju.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/cmd/raiju/raiju.go b/cmd/raiju/raiju.go index 7c2279b..431c0b8 100644 --- a/cmd/raiju/raiju.go +++ b/cmd/raiju/raiju.go @@ -113,7 +113,6 @@ func main() { } feesFlagSet := flag.NewFlagSet("fees", flag.ExitOnError) - standardLiquidityFeePPMOverride := feesFlagSet.Float64("standard-liquidity-fee-ppm", 0, "Override the default standard liquidity fee ppm") daemon := feesFlagSet.Bool("daemon", false, "Run daemon which monitors channel liquidities and immediately updates fees when thresholds are crossed") feesCmd := &ffcli.Command{ @@ -143,13 +142,7 @@ func main() { c := lnd.New(services.Client, services.Client, services.Router, *network) r := raiju.New(c) - // default to standard fee, override with flag - standard := *standardLiquidityFeePPM - if *standardLiquidityFeePPMOverride != 0 { - standard = *standardLiquidityFeePPMOverride - } - - _, err = r.Fees(ctx, raiju.NewLiquidityFees(standard), *daemon) + _, err = r.Fees(ctx, raiju.NewLiquidityFees(*standardLiquidityFeePPM), *daemon) return err },