forked from TrueCloudLab/frostfs-s3-gw
[#258] Add explicit expiration epoch
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
214c55431b
commit
71f578a883
1 changed files with 5 additions and 3 deletions
|
@ -5,6 +5,7 @@ import (
|
|||
"crypto/ecdsa"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"math"
|
||||
"os"
|
||||
"os/signal"
|
||||
"strings"
|
||||
|
@ -406,9 +407,10 @@ func createSDKClient(ctx context.Context, log *zap.Logger, key *ecdsa.PrivateKey
|
|||
pb.AddNode(peerAddress, 1)
|
||||
|
||||
opts := &pool.BuilderOptions{
|
||||
Key: key,
|
||||
NodeConnectionTimeout: poolConnectTimeout,
|
||||
NodeRequestTimeout: poolRequestTimeout,
|
||||
Key: key,
|
||||
NodeConnectionTimeout: poolConnectTimeout,
|
||||
NodeRequestTimeout: poolRequestTimeout,
|
||||
SessionExpirationEpoch: math.MaxUint32,
|
||||
}
|
||||
return pb.Build(ctx, opts)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue