mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-09-26 21:01:14 +08:00
fix(deps): update module google.golang.org/grpc to v1.64.0
This commit is contained in:
@@ -60,7 +60,7 @@ func (c *InterfaceSettings) AgentURLs(ctx context.Context, pk *crypto.Key) ([]*s
|
||||
return err
|
||||
}
|
||||
|
||||
conn, err := grpc.DialContext(ctx, name, opts...)
|
||||
conn, err := grpc.DialContext(ctx, name, opts...) //nolint:staticcheck
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to connect to gRPC server: %w", err)
|
||||
}
|
||||
|
@@ -72,6 +72,7 @@ func Connect(path string) (*Client, error) {
|
||||
}
|
||||
|
||||
tgt := fmt.Sprintf("unix://%s", path)
|
||||
//nolint:staticcheck
|
||||
conn, err := grpc.Dial(tgt,
|
||||
grpc.WithTransportCredentials(insecure.NewCredentials()),
|
||||
grpc.WithUserAgent(buildinfo.UserAgent()),
|
||||
|
@@ -52,6 +52,7 @@ func NewBackend(cfg *signaling.BackendConfig, logger *log.Logger) (signaling.Bac
|
||||
}
|
||||
|
||||
// TODO: Use DialWithContext
|
||||
//nolint:staticcheck
|
||||
if b.conn, err = grpc.Dial(b.config.Target, b.config.Options...); err != nil {
|
||||
return nil, fmt.Errorf("failed to connect to gRPC server: %w", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user