[#570] *: Remove usage of deprecated elements from API Go library

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-05-31 14:03:17 +03:00 committed by Leonard Lyubich
parent 70a7354e9d
commit 3dd10b6795
63 changed files with 285 additions and 270 deletions

View file

@ -4,6 +4,7 @@ import (
"context"
"github.com/nspcc-dev/neofs-api-go/pkg/container"
cid "github.com/nspcc-dev/neofs-api-go/pkg/container/id"
"github.com/nspcc-dev/neofs-api-go/pkg/netmap"
"github.com/nspcc-dev/neofs-api-go/pkg/object"
)
@ -14,7 +15,7 @@ type Task struct {
auditContext context.Context
cid *container.ID
cid *cid.ID
cnr *container.Container
@ -54,7 +55,7 @@ func (t *Task) AuditContext() context.Context {
}
// WithContainerID sets identifier of the container under audit.
func (t *Task) WithContainerID(cid *container.ID) *Task {
func (t *Task) WithContainerID(cid *cid.ID) *Task {
if t != nil {
t.cid = cid
}
@ -63,7 +64,7 @@ func (t *Task) WithContainerID(cid *container.ID) *Task {
}
// ContainerID returns identifier of the container under audit.
func (t *Task) ContainerID() *container.ID {
func (t *Task) ContainerID() *cid.ID {
return t.cid
}