Skip to content

Commit

Permalink
fixup: Address review feedback #1
Browse files Browse the repository at this point in the history
  • Loading branch information
marun committed Aug 8, 2023
1 parent 2f293cf commit bbea891
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const (
AvalancheGoDataDirVar = "AVALANCHEGO_DATA_DIR"
defaultUnexpandedDataDir = "$" + AvalancheGoDataDirVar

ProcessContextFilename = "process.json"
DefaultProcessContextFilename = "process.json"
)

var (
Expand All @@ -52,7 +52,7 @@ var (
defaultSubnetConfigDir = filepath.Join(defaultConfigDir, "subnets")
defaultPluginDir = filepath.Join(defaultUnexpandedDataDir, "plugins")
defaultChainDataDir = filepath.Join(defaultUnexpandedDataDir, "chainData")
defaultProcessContextPath = filepath.Join(defaultUnexpandedDataDir, ProcessContextFilename)
defaultProcessContextPath = filepath.Join(defaultUnexpandedDataDir, DefaultProcessContextFilename)
)

func deprecateFlags(fs *pflag.FlagSet) error {
Expand Down
1 change: 1 addition & 0 deletions tests/fixture/testnet/local/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ func FindNextNetworkID(rootDir string) (uint32, string, error) {
for {
_, reserved := constants.NetworkIDToNetworkName[networkID]
if reserved {
networkID++
continue
}

Expand Down
2 changes: 1 addition & 1 deletion tests/fixture/testnet/local/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func (n *LocalNode) WriteConfig() error {
}

func (n *LocalNode) GetProcessContextPath() string {
return filepath.Join(n.GetDataDir(), config.ProcessContextFilename)
return filepath.Join(n.GetDataDir(), config.DefaultProcessContextFilename)
}

func (n *LocalNode) ReadProcessContext() error {
Expand Down

0 comments on commit bbea891

Please sign in to comment.