forked from TrueCloudLab/frostfs-node
[#648] morph/client: Fix method name in NewEpoch
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
1f461baf0b
commit
5df55bcfaf
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ func (a *NewEpochArgs) SetEpochNumber(v int64) {
|
||||||
// NewEpoch invokes the call of new epoch method
|
// NewEpoch invokes the call of new epoch method
|
||||||
// of NeoFS Netmap contract.
|
// of NeoFS Netmap contract.
|
||||||
func (c *Client) NewEpoch(args NewEpochArgs) error {
|
func (c *Client) NewEpoch(args NewEpochArgs) error {
|
||||||
if err := c.client.Invoke(c.addPeerMethod, args.number); err != nil {
|
if err := c.client.Invoke(c.newEpochMethod, args.number); err != nil {
|
||||||
return fmt.Errorf("could not invoke method (%s): %w", c.newEpochMethod, err)
|
return fmt.Errorf("could not invoke method (%s): %w", c.newEpochMethod, err)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue