Skip to content

Commit 621e497

Browse files
committed
chore: Update naisdevice connection to use grpc.NewClient
1 parent 79461c7 commit 621e497

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/naisdevice/naisdevice.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ func agentConnection() (*grpc.ClientConn, error) {
1818
}
1919
socket := filepath.Join(userConfigDir, "agent.sock")
2020

21-
connection, err := grpc.Dial(
21+
connection, err := grpc.NewClient(
2222
"unix:"+socket,
2323
grpc.WithTransportCredentials(insecure.NewCredentials()),
2424
)
25+
2526
if err != nil {
2627
return nil, formatGrpcError(err)
2728
}

0 commit comments

Comments
 (0)