mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
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()
This commit is contained in:
parent
a3db145ced
commit
175b7d601b
10 changed files with 1145 additions and 4309 deletions
|
|
@ -306,7 +306,7 @@ func getClientConn(config *TapdConfig) (*grpc.ClientConn, error) {
|
|||
}
|
||||
|
||||
// Dial the gRPC server.
|
||||
conn, err := grpc.Dial(config.Host, opts...)
|
||||
conn, err := grpc.NewClient(config.Host, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue