Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
kthomas committed Apr 9, 2024
1 parent 82c5595 commit 74c4a41
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion internal/node/processmanager/firecracker_procman.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
)

const runloopSleepInterval = 100 * time.Millisecond
const runloopTickInterval = 2500 * time.Millisecond

type FirecrackerProcessManager struct {
closing uint32
Expand Down
8 changes: 1 addition & 7 deletions nex/node_up_preflight.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
}

0 comments on commit 74c4a41

Please sign in to comment.