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"
|
"crypto/ecdsa"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"math"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"strings"
|
"strings"
|
||||||
|
@ -406,9 +407,10 @@ func createSDKClient(ctx context.Context, log *zap.Logger, key *ecdsa.PrivateKey
|
||||||
pb.AddNode(peerAddress, 1)
|
pb.AddNode(peerAddress, 1)
|
||||||
|
|
||||||
opts := &pool.BuilderOptions{
|
opts := &pool.BuilderOptions{
|
||||||
Key: key,
|
Key: key,
|
||||||
NodeConnectionTimeout: poolConnectTimeout,
|
NodeConnectionTimeout: poolConnectTimeout,
|
||||||
NodeRequestTimeout: poolRequestTimeout,
|
NodeRequestTimeout: poolRequestTimeout,
|
||||||
|
SessionExpirationEpoch: math.MaxUint32,
|
||||||
}
|
}
|
||||||
return pb.Build(ctx, opts)
|
return pb.Build(ctx, opts)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue