forked from TrueCloudLab/frostfs-sdk-go
[#47] client: Do not check context in NetmapSnapshot()
It is passed explicitly, non-nil by convention. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
1395b282fe
commit
4cd755877c
2 changed files with 0 additions and 10 deletions
|
@ -233,11 +233,6 @@ func (x ResNetMapSnapshot) NetMap() netmap.NetMap {
|
|||
// Return statuses:
|
||||
// - global (see Client docs).
|
||||
func (c *Client) NetMapSnapshot(ctx context.Context, _ PrmNetMapSnapshot) (*ResNetMapSnapshot, error) {
|
||||
// check context
|
||||
if ctx == nil {
|
||||
return nil, errorMissingContext
|
||||
}
|
||||
|
||||
// form request body
|
||||
var body v2netmap.SnapshotRequestBody
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue