Skip to content

Commit

Permalink
chore: revised max/min value for config parameters (razor-network#1257)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashk767 authored Oct 29, 2024
1 parent b0751a5 commit 98ef5c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/config-utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func (*UtilsStruct) GetBufferPercent() (int32, error) {
func (*UtilsStruct) GetWaitTime() (int32, error) {
const (
MinWaitTime = 1 // Minimum wait time in seconds
MaxWaitTime = 30 // Maximum wait time in seconds
MaxWaitTime = 15 // Maximum wait time in seconds
)

waitTime, err := getConfigValue("wait", "int32", core.DefaultWaitTime, "wait")
Expand Down Expand Up @@ -325,7 +325,7 @@ func (*UtilsStruct) GetGasLimitOverride() (uint64, error) {
//This function returns the RPC timeout
func (*UtilsStruct) GetRPCTimeout() (int64, error) {
const (
MinRPCTimeout = 5 // Minimum RPC timeout in seconds
MinRPCTimeout = 1 // Minimum RPC timeout in seconds
MaxRPCTimeout = 10 // Maximum RPC timeout in seconds
)

Expand All @@ -347,7 +347,7 @@ func (*UtilsStruct) GetRPCTimeout() (int64, error) {

func (*UtilsStruct) GetHTTPTimeout() (int64, error) {
const (
MinHTTPTimeout = 5 // Minimum HTTP timeout in seconds
MinHTTPTimeout = 3 // Minimum HTTP timeout in seconds
MaxHTTPTimeout = 8 // Maximum HTTP timeout in seconds
)

Expand Down

0 comments on commit 98ef5c1

Please sign in to comment.