From 7fba07b414c321349e1b4334852ed191d397e10a Mon Sep 17 00:00:00 2001 From: aliamerj Date: Tue, 9 Sep 2025 18:49:28 +0300 Subject: [PATCH] fix lint --- client/internal/engine.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/client/internal/engine.go b/client/internal/engine.go index 8da4fb3ae..5c5fb0acb 100644 --- a/client/internal/engine.go +++ b/client/internal/engine.go @@ -22,8 +22,6 @@ import ( log "github.com/sirupsen/logrus" "golang.zx2c4.com/wireguard/tun/netstack" "golang.zx2c4.com/wireguard/wgctrl/wgtypes" - "google.golang.org/grpc" - "google.golang.org/grpc/credentials/insecure" "google.golang.org/protobuf/proto" nberrors "github.com/netbirdio/netbird/client/errors" @@ -887,20 +885,6 @@ func (e *Engine) updateConfig(conf *mgmProto.PeerConfig) error { return nil } - -func (e *Engine) getPeerClient(addr string) (*grpc.ClientConn, error) { - conn, err := grpc.NewClient( - strings.TrimPrefix(addr, "tcp://"), - grpc.WithTransportCredentials(insecure.NewCredentials()), - ) - if err != nil { - return nil, fmt.Errorf("failed to connect to daemon error: %v\n"+ - "If the daemon is not running please run: "+ - "\nnetbird service install \nnetbird service start\n", err) - } - - return conn, nil -} func (e *Engine) receiveJobEvents() { go func() { // todo: engine can be restarted any time. We need to handle the case when a job is being processed while the engine is stopping