[#199] sdk/client: Correct linter's remarks
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
00ce980d82
commit
0620a3b1eb
7 changed files with 76 additions and 43 deletions
|
@ -33,12 +33,11 @@ const (
|
|||
GRPC
|
||||
)
|
||||
|
||||
var (
|
||||
unsupportedProtocolErr = errors.New("unsupported transport protocol")
|
||||
)
|
||||
var errUnsupportedProtocol = errors.New("unsupported transport protocol")
|
||||
|
||||
func New(key *ecdsa.PrivateKey, opts ...ClientOption) (*Client, error) {
|
||||
func New(key *ecdsa.PrivateKey, opts ...Option) (*Client, error) {
|
||||
clientOptions := defaultClientOptions()
|
||||
|
||||
for i := range opts {
|
||||
opts[i].apply(clientOptions)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue