[#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"
"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)
}