mer
All checks were successful
Build and Publish / Metadata (push) Successful in 6s
Build and Publish / BuildAndDeployAmd64 (push) Successful in 1m8s
Build and Publish / BuildAndDeployArm64 (push) Successful in 3m11s

This commit is contained in:
matst80
2025-10-12 23:00:17 +02:00
parent 873fb6c97b
commit a7a778caaf
2 changed files with 7 additions and 6 deletions

View File

@@ -10,6 +10,7 @@ import (
messages "git.tornberg.me/go-cart-actor/pkg/messages" messages "git.tornberg.me/go-cart-actor/pkg/messages"
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure"
) )
// RemoteHost mirrors the lightweight controller used for remote node // RemoteHost mirrors the lightweight controller used for remote node
@@ -27,8 +28,8 @@ type RemoteHost struct {
func NewRemoteHost(host string) (*RemoteHost, error) { func NewRemoteHost(host string) (*RemoteHost, error) {
target := fmt.Sprintf("%s:1337", host) target := fmt.Sprintf("%s:1337", host)
var opts []grpc.DialOption
conn, err := grpc.NewClient(target, opts...) conn, err := grpc.NewClient(target, grpc.WithTransportCredentials(insecure.NewCredentials()))
if err != nil { if err != nil {
log.Printf("AddRemote: dial %s failed: %v", target, err) log.Printf("AddRemote: dial %s failed: %v", target, err)