[#180] sdk/client: Make defaultOptions func a Client method

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-10-27 15:54:02 +03:00 committed by Alex Vanin
parent ad0b01e892
commit 805ad54f41
6 changed files with 17 additions and 17 deletions

View file

@ -23,7 +23,7 @@ func (c Client) EndpointInfo(ctx context.Context, opts ...CallOption) (*netmap.N
func (c Client) endpointInfoV2(ctx context.Context, opts ...CallOption) (*netmap.NodeInfo, error) {
// apply all available options
callOptions := defaultCallOptions()
callOptions := c.defaultCallOptions()
for i := range opts {
opts[i].apply(&callOptions)
}