summaryrefslogtreecommitdiffhomepage
path: root/cmd
diff options
context:
space:
mode:
authorManuel RĂ¼ger <manuel@rueg.eu>2021-08-19 22:12:40 +0200
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2021-08-28 20:28:15 +0900
commitd6e7a6676321fa1199c6a30df5658f6c9818d55e (patch)
tree30e3d7d39ef16a667ae316fbcabb4351b1f167a9 /cmd
parentfc1a1899870a7a700782a08f1087f41fc645297c (diff)
go.mod: Bump dependencies
Diffstat (limited to 'cmd')
-rw-r--r--cmd/gobgp/common.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/gobgp/common.go b/cmd/gobgp/common.go
index a0d73938..9fb494e1 100644
--- a/cmd/gobgp/common.go
+++ b/cmd/gobgp/common.go
@@ -213,10 +213,10 @@ func newClient(ctx context.Context) (api.GobgpApiClient, context.CancelFunc, err
target = net.JoinHostPort(globalOpts.Host, strconv.Itoa(globalOpts.Port))
} else if strings.HasPrefix(target, "unix://") {
target = target[len("unix://"):]
- dialer := func(addr string, t time.Duration) (net.Conn, error) {
+ dialer := func(ctx context.Context, addr string) (net.Conn, error) {
return net.Dial("unix", addr)
}
- grpcOpts = append(grpcOpts, grpc.WithDialer(dialer))
+ grpcOpts = append(grpcOpts, grpc.WithContextDialer(dialer))
}
cc, cancel := context.WithTimeout(ctx, time.Second)