forked from TrueCloudLab/frostfs-node
[#584] pkg/innerring: Delete using deprecated methods
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
057ebf9d51
commit
752efc6f8c
12 changed files with 2 additions and 134 deletions
|
@ -40,22 +40,3 @@ func (c *Client) Put(args PutArgs) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// PutViaNotary invokes notary call of "put reputation value" method of
|
||||
// reputation contract.
|
||||
//
|
||||
// Deprecated: construct underlying StaticClient with TryNotary() option
|
||||
// and use Put.
|
||||
func (c *Client) PutViaNotary(args PutArgs) error {
|
||||
err := c.client.NotaryInvoke(
|
||||
c.putMethod,
|
||||
int64(args.epoch),
|
||||
args.peerID,
|
||||
args.value,
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
return fmt.Errorf("could not invoke method (%s): %w", c.putMethod, err)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue