Skip to content

Commit

Permalink
hardcode the enable packet timeout as 6min
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxkad committed Jan 31, 2024
1 parent 9be7932 commit 28a2c92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 28a2c92

Please sign in to comment.