forked from TrueCloudLab/frostfs-s3-gw
[#297] Update neofs-sdk-go and neo-go
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
a23a97efd6
commit
12c15504ef
9 changed files with 61 additions and 102 deletions
|
@ -10,6 +10,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
apistatus "github.com/nspcc-dev/neofs-sdk-go/client/status"
|
||||
|
||||
"github.com/nspcc-dev/neo-go/pkg/crypto/keys"
|
||||
"github.com/nspcc-dev/neofs-s3-gw/api"
|
||||
"github.com/nspcc-dev/neofs-s3-gw/api/cache"
|
||||
|
@ -653,11 +655,16 @@ func (n *layer) ResolveBucket(ctx context.Context, name string) (*cid.ID, error)
|
|||
return nil, err
|
||||
}
|
||||
|
||||
networkInfo, err := conn.NetworkInfo(ctx)
|
||||
networkInfoRes, err := conn.NetworkInfo(ctx)
|
||||
if err == nil {
|
||||
err = apistatus.ErrFromStatus(networkInfoRes.Status())
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
networkInfo := networkInfoRes.Info()
|
||||
|
||||
var domain string
|
||||
networkInfo.NetworkConfig().IterateParameters(func(parameter *netmap.NetworkParameter) bool {
|
||||
if string(parameter.Key()) == networkSystemDNSParam {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue