Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sukantoraymond committed Aug 10, 2024
1 parent 53acf86 commit e4a7022
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 3 additions & 2 deletions node/add_validator_primary_network.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@ package node
import (
"errors"
"fmt"
"os"
"time"

"github.com/ava-labs/avalanche-tooling-sdk-go/avalanche"
"github.com/ava-labs/avalanche-tooling-sdk-go/utils"
"github.com/ava-labs/avalanchego/utils/crypto/bls"
"github.com/ava-labs/avalanchego/vms/platformvm"
"github.com/ava-labs/avalanchego/vms/platformvm/signer"
"github.com/ava-labs/avalanchego/vms/secp256k1fx"
"github.com/ava-labs/avalanchego/wallet/subnet/primary/common"
"os"
"time"

"github.com/ava-labs/avalanche-tooling-sdk-go/wallet"
"github.com/ava-labs/avalanchego/ids"
Expand Down
5 changes: 2 additions & 3 deletions node/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"bytes"
"context"
"fmt"
"github.com/ava-labs/avalanchego/utils/crypto/bls"
"io"
"net"
"net/http"
Expand All @@ -18,6 +17,8 @@ import (
"sync"
"time"

"github.com/ava-labs/avalanchego/utils/crypto/bls"

"github.com/melbahja/goph"
"golang.org/x/crypto/ssh"

Expand Down Expand Up @@ -174,8 +175,6 @@ func (h *Node) Upload(localFile string, remoteFile string, timeout time.Duration
return err
}
}
fmt.Printf("we are connected \n")
fmt.Printf("we are uploading from localfile %s to remotefile %s \n", localFile, remoteFile)
_, err := utils.TimedFunction(
func() (interface{}, error) {
return nil, h.connection.Upload(localFile, remoteFile)
Expand Down
1 change: 0 additions & 1 deletion node/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,6 @@ func (h *Node) RunSSHUploadStakingFiles(keyPath string) error {
filepath.Join(constants.CloudNodeStakingPath, constants.StakerCertFileName),
constants.SSHFileOpsTimeout,
); err != nil {
fmt.Printf("we have error uploading staker file \n")
return err
}
if err := h.Upload(
Expand Down

0 comments on commit e4a7022

Please sign in to comment.