forked from TrueCloudLab/frostfs-node
[#425] services: Define service interfaces that was removed from API lib
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
e6f945e61d
commit
718a2fad26
29 changed files with 107 additions and 42 deletions
|
@ -3,7 +3,7 @@ package putsvc
|
|||
import (
|
||||
"context"
|
||||
|
||||
objectV2 "github.com/nspcc-dev/neofs-api-go/v2/object"
|
||||
"github.com/nspcc-dev/neofs-node/pkg/services/object"
|
||||
putsvc "github.com/nspcc-dev/neofs-node/pkg/services/object/put"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
@ -34,7 +34,7 @@ func NewService(opts ...Option) *Service {
|
|||
}
|
||||
|
||||
// Put calls internal service and returns v2 object streamer.
|
||||
func (s *Service) Put(ctx context.Context) (objectV2.PutObjectStreamer, error) {
|
||||
func (s *Service) Put(ctx context.Context) (object.PutObjectStream, error) {
|
||||
stream, err := s.svc.Put(ctx)
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "(%T) could not open object put stream", s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue