diff --git a/pkg/node/helper.go b/pkg/node/helper.go index 4e94f1e25..ba3566f06 100644 --- a/pkg/node/helper.go +++ b/pkg/node/helper.go @@ -5,6 +5,8 @@ package node import ( "encoding/json" "fmt" + "sync" + "github.com/ava-labs/avalanche-cli/pkg/application" "github.com/ava-labs/avalanche-cli/pkg/constants" "github.com/ava-labs/avalanche-cli/pkg/models" @@ -12,7 +14,6 @@ import ( "github.com/ava-labs/avalanche-cli/pkg/utils" "github.com/ava-labs/avalanche-cli/pkg/ux" "github.com/ava-labs/avalanchego/api/info" - "sync" ) func checkCluster(app *application.Avalanche, clusterName string) error { diff --git a/pkg/node/sync.go b/pkg/node/sync.go index 9f5d609c1..56ac65ed8 100644 --- a/pkg/node/sync.go +++ b/pkg/node/sync.go @@ -6,6 +6,8 @@ import ( "encoding/json" "errors" "fmt" + "sync" + "github.com/ava-labs/avalanche-cli/pkg/ansible" "github.com/ava-labs/avalanche-cli/pkg/application" "github.com/ava-labs/avalanche-cli/pkg/models" @@ -14,7 +16,6 @@ import ( "github.com/ava-labs/avalanche-cli/pkg/utils" "github.com/ava-labs/avalanche-cli/pkg/ux" "github.com/ava-labs/avalanchego/utils/set" - "sync" ) func SyncSubnet(app *application.Avalanche, clusterName, blockchainName string, avoidChecks bool, subnetAliases []string) error { diff --git a/pkg/subnet/helpers.go b/pkg/subnet/helpers.go index 9a55ea23a..332602b68 100644 --- a/pkg/subnet/helpers.go +++ b/pkg/subnet/helpers.go @@ -6,20 +6,19 @@ import ( "encoding/json" "errors" "fmt" + "os" + "path/filepath" + "unicode" + "github.com/ava-labs/avalanche-cli/pkg/application" "github.com/ava-labs/avalanche-cli/pkg/constants" "github.com/ava-labs/avalanche-cli/pkg/key" "github.com/ava-labs/avalanche-cli/pkg/models" "github.com/ava-labs/avalanche-cli/pkg/utils" - "os" - "path/filepath" - "unicode" ) -var ( - errIllegalNameCharacter = errors.New( - "illegal name character: only letters, no special characters allowed") -) +var errIllegalNameCharacter = errors.New( + "illegal name character: only letters, no special characters allowed") func GetDefaultSubnetAirdropKeyInfo(app *application.Avalanche, subnetName string) (string, string, string, error) { keyName := utils.GetDefaultBlockchainAirdropKeyName(subnetName)