Skip to content

Commit 175b7d6

Browse files
committed
loooprpc: replace deprecated grpc.Dial with grpc.NewClient
- Update assets/client.go to use grpc.NewClient - Update swap_server_client.go to use grpc.NewClient - Replace grpc.WithInsecure() with insecure.NewCredentials()
1 parent a3db145 commit 175b7d6

10 files changed

Lines changed: 1145 additions & 4309 deletions

File tree

assets/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ func getClientConn(config *TapdConfig) (*grpc.ClientConn, error) {
306306
}
307307

308308
// Dial the gRPC server.
309-
conn, err := grpc.Dial(config.Host, opts...)
309+
conn, err := grpc.NewClient(config.Host, opts...)
310310
if err != nil {
311311
return nil, err
312312
}

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ require (
3939
go.etcd.io/bbolt v1.4.3
4040
golang.org/x/sync v0.18.0
4141
google.golang.org/grpc v1.64.1
42-
google.golang.org/protobuf v1.36.5
42+
google.golang.org/protobuf v1.36.11
4343
gopkg.in/macaroon-bakery.v2 v2.3.0
4444
gopkg.in/macaroon.v2 v2.1.0
4545
modernc.org/sqlite v1.34.5
@@ -150,7 +150,6 @@ require (
150150
github.com/prometheus/procfs v0.8.0 // indirect
151151
github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
152152
github.com/rogpeppe/fastuuid v1.2.0 // indirect
153-
github.com/rogpeppe/go-internal v1.14.1 // indirect
154153
github.com/russross/blackfriday/v2 v2.1.0 // indirect
155154
github.com/sirupsen/logrus v1.9.3 // indirect
156155
github.com/soheilhy/cmux v0.1.5 // indirect

looprpc/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.21.9-bookworm
1+
FROM golang:1.24-bookworm
22

33
RUN apt-get update && apt-get install -y \
44
git \

0 commit comments

Comments
 (0)