From 0d2b2cd69f7a5f668833b8de00dcb98cc6256ae1 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Wed, 4 Dec 2019 12:37:49 +0100 Subject: [PATCH] Update deprecation note Tell people to replace Dial + WithTimeout by DialContext + context.WithTimeout. --- dialoptions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dialoptions.go b/dialoptions.go index 874118abb2c5..9af3eef7ab34 100644 --- a/dialoptions.go +++ b/dialoptions.go @@ -346,8 +346,8 @@ func WithCredentialsBundle(b credentials.Bundle) DialOption { // WithTimeout returns a DialOption that configures a timeout for dialing a // ClientConn initially. This is valid if and only if WithBlock() is present. // -// Deprecated: use DialContext and context.WithTimeout instead. Will be -// supported throughout 1.x. +// Deprecated: use DialContext instead of Dial and context.WithTimeout +// instead. Will be supported throughout 1.x. func WithTimeout(d time.Duration) DialOption { return newFuncDialOption(func(o *dialOptions) { o.timeout = d