Merge pull request #513 from nspcc-dev/feat/rpc_param
This PR does 3 things: adds array parameter unmarshalling extend Param with convenient methods refactor tests into using tables to make it easier add new tests (part of #347 solution)
This commit is contained in:
commit
ea9bc22510
7 changed files with 650 additions and 465 deletions
|
@ -18,7 +18,7 @@ import (
|
|||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
var (
|
||||
const (
|
||||
defaultDialTimeout = 4 * time.Second
|
||||
defaultRequestTimeout = 4 * time.Second
|
||||
defaultClientVersion = "2.0"
|
||||
|
@ -78,7 +78,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…
Add table
Add a link
Reference in a new issue