forked from TrueCloudLab/frostfs-rest-gw
[#1] Make walletconnect package internal
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
3f4adfdc12
commit
808aff5c66
9 changed files with 86 additions and 78 deletions
|
@ -9,9 +9,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/nspcc-dev/neofs-rest-gw/gen/models"
|
||||
|
||||
objectv2 "github.com/nspcc-dev/neofs-api-go/v2/object"
|
||||
"github.com/nspcc-dev/neofs-rest-gw/gen/models"
|
||||
"github.com/nspcc-dev/neofs-sdk-go/netmap"
|
||||
"github.com/nspcc-dev/neofs-sdk-go/object"
|
||||
"github.com/nspcc-dev/neofs-sdk-go/pool"
|
||||
|
@ -217,15 +216,3 @@ func updateExpirationHeader(headers map[string]string, durations *epochDurations
|
|||
numEpoch := expDuration.Milliseconds() / epochDuration
|
||||
headers[objectv2.SysAttributeExpEpoch] = strconv.FormatInt(int64(durations.currentEpoch)+numEpoch, 10)
|
||||
}
|
||||
|
||||
func NewString(val string) *string {
|
||||
return &val
|
||||
}
|
||||
|
||||
func NewInteger(val int64) *int64 {
|
||||
return &val
|
||||
}
|
||||
|
||||
func NewError(err error) models.Error {
|
||||
return models.Error(err.Error())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue