From 71f578a8837575c088980eb8de32ae34df62c35d Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Mon, 8 Nov 2021 11:44:21 +0300 Subject: [PATCH] [#258] Add explicit expiration epoch Signed-off-by: Denis Kirillov --- cmd/authmate/main.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cmd/authmate/main.go b/cmd/authmate/main.go index 5af2b1f4..c501cfde 100644 --- a/cmd/authmate/main.go +++ b/cmd/authmate/main.go @@ -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) }