forked from TrueCloudLab/frostfs-api-go
[#180] sdk/client: Make defaultOptions func a Client method
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
ad0b01e892
commit
805ad54f41
6 changed files with 17 additions and 17 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue