From 28a2c92ecf89db41ec1fadaab660f2e87f86c252 Mon Sep 17 00:00:00 2001 From: zyxkad Date: Tue, 30 Jan 2024 19:27:49 -0700 Subject: [PATCH] hardcode the enable packet timeout as 6min --- cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cluster.go b/cluster.go index 283f29ab..edec6d62 100644 --- a/cluster.go +++ b/cluster.go @@ -233,7 +233,7 @@ func (cr *Cluster) Enable(ctx context.Context) (err error) { return } logInfo("Sending enable packet") - tctx, cancel := context.WithTimeout(ctx, time.Second*(time.Duration)(config.KeepaliveTimeout)) + tctx, cancel := context.WithTimeout(ctx, time.Minute*6) data, err := cr.socket.EmitAckContext(tctx, "enable", Map{ "host": cr.host, "port": cr.publicPort,