Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion internal/balancer/yanet2/yanet.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"fmt"

"google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"

"github.com/yanet-platform/monalive/gen/yanet2/common/commonpb"
"github.com/yanet-platform/monalive/gen/yanet2/modules/balancer/controlplane/balancerpb"
Expand All @@ -22,7 +23,10 @@ type Client struct {

// NewClient creates a new YANET2 balancer module client instance.
func NewClient(config *Config) (*Client, error) {
grpcClient, err := grpc.NewClient(config.Addr)
grpcClient, err := grpc.NewClient(
config.Addr,
grpc.WithTransportCredentials(insecure.NewCredentials()),
)
if err != nil {
return nil, fmt.Errorf("failed to create grpc client: %w", err)
}
Expand Down