*: replace neofs-api-go with neofs-sdk-go

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2021-11-10 10:08:33 +03:00 committed by Alex Vanin
parent 6c0b29e3e3
commit 95893927aa
256 changed files with 603 additions and 604 deletions

View file

@ -3,13 +3,13 @@ package netmap
import (
"context"
"github.com/nspcc-dev/neofs-api-go/pkg"
"github.com/nspcc-dev/neofs-api-go/v2/netmap"
"github.com/nspcc-dev/neofs-api-go/v2/refs"
"github.com/nspcc-dev/neofs-sdk-go/version"
)
type executorSvc struct {
version *pkg.Version
version *version.Version
state NodeState
netInfo NetworkInfo
@ -32,7 +32,7 @@ type NetworkInfo interface {
Dump(*refs.Version) (*netmap.NetworkInfo, error)
}
func NewExecutionService(s NodeState, v *pkg.Version, netInfo NetworkInfo) Server {
func NewExecutionService(s NodeState, v *version.Version, netInfo NetworkInfo) Server {
if s == nil || v == nil || netInfo == nil {
// this should never happen, otherwise it programmers bug
panic("can't create netmap execution service")
@ -48,7 +48,7 @@ func NewExecutionService(s NodeState, v *pkg.Version, netInfo NetworkInfo) Serve
func (s *executorSvc) LocalNodeInfo(
_ context.Context,
req *netmap.LocalNodeInfoRequest) (*netmap.LocalNodeInfoResponse, error) {
ver := pkg.NewVersionFromV2(req.GetMetaHeader().GetVersion())
ver := version.NewFromV2(req.GetMetaHeader().GetVersion())
ni, err := s.state.LocalNodeInfo()
if err != nil {