rpc: make client default values constants

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2019-11-22 12:08:33 +03:00
parent 3afcd784f0
commit 0f9024d177

View file

@ -15,7 +15,7 @@ import (
"github.com/pkg/errors"
)
var (
const (
defaultDialTimeout = 4 * time.Second
defaultRequestTimeout = 4 * time.Second
defaultClientVersion = "2.0"
@ -75,7 +75,6 @@ func NewClient(ctx context.Context, endpoint string, opts ClientOptions) (*Clien
// TODO(@antdm): Enable SSL.
if opts.Cert != "" && opts.Key != "" {
}
if opts.Client.Timeout == 0 {