mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 13:41:37 +00:00
rpc: make client default values constants
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
3afcd784f0
commit
0f9024d177
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue