forked from TrueCloudLab/frostfs-api-go
prepare to rename neofs-proto to neofs-api
This commit is contained in:
parent
b42537f8d8
commit
53af48372f
70 changed files with 565 additions and 563 deletions
|
@ -1,7 +1,7 @@
|
|||
package service
|
||||
|
||||
import (
|
||||
"github.com/nspcc-dev/neofs-proto/internal"
|
||||
"github.com/nspcc-dev/neofs-api/internal"
|
||||
"github.com/pkg/errors"
|
||||
"google.golang.org/grpc/codes"
|
||||
"google.golang.org/grpc/status"
|
||||
|
@ -94,7 +94,7 @@ func IRNonForwarding(role NodeRole) TTLCondition {
|
|||
|
||||
// ProcessRequestTTL validates and update ttl requests.
|
||||
func ProcessRequestTTL(req MetaHeader, cond ...TTLCondition) error {
|
||||
var ttl = req.GetTTL()
|
||||
ttl := req.GetTTL()
|
||||
|
||||
if ttl == ZeroTTL {
|
||||
return status.New(codes.InvalidArgument, ErrZeroTTL.Error()).Err()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue