[#258] Add explicit expiration epoch

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2021-11-08 11:44:21 +03:00 committed by Alex Vanin
parent 214c55431b
commit 71f578a883

View file

@ -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)
} }