From 725a80a3b75687e178b8a2351e1d4540da494729 Mon Sep 17 00:00:00 2001 From: bitromortac Date: Tue, 6 May 2025 10:17:42 +0200 Subject: [PATCH] lncli: remove possibility to discard mission control from loadmc This can already be done with resetmc and was only included here because loadmc was used in a different context. --- cmd/commands/cmd_import_mission_control.go | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/cmd/commands/cmd_import_mission_control.go b/cmd/commands/cmd_import_mission_control.go index 13cffe1ef..3159d551f 100644 --- a/cmd/commands/cmd_import_mission_control.go +++ b/cmd/commands/cmd_import_mission_control.go @@ -115,10 +115,6 @@ var loadMissionControlCommand = cli.Command{ Name: "mcdatapath", Usage: "The path to the querymc output file (json).", }, - cli.BoolFlag{ - Name: "discard", - Usage: "Discards current mission control data.", - }, cli.StringFlag{ Name: "timeoffset", Usage: "Time offset to add to all timestamps. " + @@ -171,22 +167,6 @@ func loadMissionControl(ctx *cli.Context) error { client := routerrpc.NewRouterClient(conn) - // We discard mission control data if requested. - if ctx.Bool("discard") { - if !promptForConfirmation("This will discard all current " + - "mission control data in the database (yes/no): ") { - - return nil - } - - _, err = client.ResetMissionControl( - rpcCtx, &routerrpc.ResetMissionControlRequest{}, - ) - if err != nil { - return err - } - } - // Add a time offset to all timestamps if requested. timeOffset := ctx.String("timeoffset") if timeOffset != "" {