forked from TrueCloudLab/frostfs-node
[#812] morph/client: Add underline client getter in reputation wrapper
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
e2c2e27c60
commit
a7f6a3df78
2 changed files with 10 additions and 0 deletions
|
@ -71,6 +71,11 @@ func New(c *client.StaticClient, opts ...Option) (*Client, error) {
|
|||
return res, nil
|
||||
}
|
||||
|
||||
// Morph returns raw morph client.
|
||||
func (c Client) Morph() *client.Client {
|
||||
return c.client.Morph()
|
||||
}
|
||||
|
||||
// WithPutMethod returns a client constructor option that
|
||||
// specifies the method name to put reputation value.
|
||||
//
|
||||
|
|
|
@ -23,6 +23,11 @@ func defaultOpts() *opts {
|
|||
return new(opts)
|
||||
}
|
||||
|
||||
// Morph returns raw morph client.
|
||||
func (w ClientWrapper) Morph() *client.Client {
|
||||
return (reputation.Client)(w).Morph()
|
||||
}
|
||||
|
||||
// TryNotary returns option to enable
|
||||
// notary invocation tries.
|
||||
func TryNotary() Option {
|
||||
|
|
Loading…
Reference in a new issue