Skip to content

Commit

Permalink
Have a default RPC Service Timeout
Browse files Browse the repository at this point in the history
This is more verbose than it should be.  We need to come up
with a better way to specify defaults.
  • Loading branch information
alexanderguy committed Dec 3, 2024
1 parent 41a71ec commit f1096f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/agave/assets/check-validator.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ set -euo pipefail
WAIT_FOR_RPC_HEALTH={{ or .StartupPolicy.WaitForRPCHealth false }}
RPC_BIND_ADDRESS={{.Flags.RpcBindAddress}}
RPC_PORT={{.Flags.RpcPort}}
RPC_SERVICE_TIMEOUT={{.TimeoutConfig.RpcServiceTimeout}}
{{if .TimeoutConfig}}
RPC_SERVICE_TIMEOUT={{or .TimeoutConfig.RpcServiceTimeout 120}}
{{else}}
RPC_SERVICE_TIMEOUT=120
{{end}}

$WAIT_FOR_RPC_HEALTH || exit 0

Expand Down

0 comments on commit f1096f1

Please sign in to comment.