diff --git a/internal/node/processmanager/firecracker_procman.go b/internal/node/processmanager/firecracker_procman.go index 8b408b82..10eeaf5b 100644 --- a/internal/node/processmanager/firecracker_procman.go +++ b/internal/node/processmanager/firecracker_procman.go @@ -20,7 +20,6 @@ import ( ) const runloopSleepInterval = 100 * time.Millisecond -const runloopTickInterval = 2500 * time.Millisecond type FirecrackerProcessManager struct { closing uint32 diff --git a/nex/node_up_preflight.go b/nex/node_up_preflight.go index 7604518e..8b2e0d54 100644 --- a/nex/node_up_preflight.go +++ b/nex/node_up_preflight.go @@ -9,12 +9,6 @@ import ( nexnode "github.com/synadia-io/nex/internal/node" ) -const contextKeyBuildData = "build_data" - -const buildDataKeyCommit = "commit" -const buildDataKeyBuildDate = "build_data" -const buildDataKeyVersion = "version" - func setConditionalCommands() { nodeUp = nodes.Command("up", "Starts a Nex node") nodeUp.Flag("config", "configuration file for the node").Default("./config.json").StringVar(&NodeOpts.ConfigFilepath) @@ -50,5 +44,5 @@ func newContext(ctx context.Context) context.Context { "build_date": BUILDDATE, } - return context.WithValue(ctx, contextKeyBuildData, initData) + return context.WithValue(ctx, "build_data", initData) //nolint:all }