Skip to content

Commit

Permalink
chore: standardize warehouse timeout config name (#3553)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidddddarth committed Jul 31, 2023
1 parent a4edf6c commit 1cdc6d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions warehouse/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -978,9 +978,9 @@ func ReadAsBool(key string, config map[string]interface{}) bool {
}

func GetConnectionTimeout(destType, destID string) time.Duration {
destIDLevelConfig := fmt.Sprintf("warehouse.%s.%s.connectionTimeout", destType, destID)
destTypeLevelConfig := fmt.Sprintf("warehouse.%s.connectionTimeout", destType)
warehouseLevelConfig := "warehouse.connectionTimeout"
destIDLevelConfig := fmt.Sprintf("Warehouse.%s.%s.connectionTimeout", destType, destID)
destTypeLevelConfig := fmt.Sprintf("Warehouse.%s.connectionTimeout", destType)
warehouseLevelConfig := "Warehouse.connectionTimeout"

defaultTimeout := int64(3)
defaultTimeoutUnits := time.Hour
Expand Down

0 comments on commit 1cdc6d1

Please sign in to comment.