From 172eaa2ed6657ce7864b28d5595d84f17700b2d0 Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Wed, 30 Jun 2021 13:44:25 +0300 Subject: [PATCH] [#88] Remove tov2, update api-go version Signed-off-by: Angira Kekteeva --- authmate/authmate.go | 2 +- go.mod | 2 +- go.sum | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/authmate/authmate.go b/authmate/authmate.go index 5fbd9a70..58ab058f 100644 --- a/authmate/authmate.go +++ b/authmate/authmate.go @@ -275,7 +275,7 @@ func buildContext(rules []byte) (*session.ContainerContext, error) { if len(rules) != 0 { // cast ToV2 temporary, because there is no method for unmarshalling in ContainerContext in api-go - err := sessionCtx.ToV2().UnmarshalJSON(rules) + err := sessionCtx.UnmarshalJSON(rules) if err != nil { return nil, fmt.Errorf("failed to read rules for session token: %w", err) } diff --git a/go.mod b/go.mod index 6593b3ee..d088ed4a 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/google/uuid v1.2.0 github.com/gorilla/mux v1.8.0 github.com/nspcc-dev/neo-go v0.95.3 - github.com/nspcc-dev/neofs-api-go v1.27.1 + github.com/nspcc-dev/neofs-api-go v1.28.0 github.com/nspcc-dev/neofs-node v1.22.0 github.com/nspcc-dev/neofs-sdk-go v0.0.0-20210624072335-0348eb331c92 github.com/prometheus/client_golang v1.9.0 diff --git a/go.sum b/go.sum index 6b369c2b..65362f12 100644 --- a/go.sum +++ b/go.sum @@ -351,6 +351,8 @@ github.com/nspcc-dev/neofs-api-go v1.24.0/go.mod h1:G7dqincfdjBrAbL5nxVp82emF05f github.com/nspcc-dev/neofs-api-go v1.27.0/go.mod h1:i0Cwgvcu9A4M4e58pydbXFisUhSxpfljmuWFPIp2btE= github.com/nspcc-dev/neofs-api-go v1.27.1 h1:ONdKOnm0/hK6m38VTUliCHY6RTxg+IpAzY4G+BeOZG4= github.com/nspcc-dev/neofs-api-go v1.27.1/go.mod h1:i0Cwgvcu9A4M4e58pydbXFisUhSxpfljmuWFPIp2btE= +github.com/nspcc-dev/neofs-api-go v1.28.0 h1:q3FNNz0as4XDqm/AJlAIWMX8YH0nLNbi+G9bONhnKnU= +github.com/nspcc-dev/neofs-api-go v1.28.0/go.mod h1:YRIzUqBj/lGbmFm8mmCh54ZOzcJKkEIhv2s7ZvSLv3M= github.com/nspcc-dev/neofs-crypto v0.2.0/go.mod h1:F/96fUzPM3wR+UGsPi3faVNmFlA9KAEAUQR7dMxZmNA= github.com/nspcc-dev/neofs-crypto v0.2.3/go.mod h1:8w16GEJbH6791ktVqHN9YRNH3s9BEEKYxGhlFnp0cDw= github.com/nspcc-dev/neofs-crypto v0.3.0 h1:zlr3pgoxuzrmGCxc5W8dGVfA9Rro8diFvVnBg0L4ifM=