diff --git a/example status/src/functions/getWeather.nim b/example status/src/functions/getWeather.nim index fab5855..bcfdb40 100644 --- a/example status/src/functions/getWeather.nim +++ b/example status/src/functions/getWeather.nim @@ -7,7 +7,7 @@ proc getWeather(): string = result = sWeather # Do something with the weather information else: dTimeStamp = some(now()) - var hClient = newHttpClient() + var hClient = newHttpClient(timeout = 1000) try: sWeather = WEATHER_ICON & hClient.getContent("http://wttr.in/" & CITY & "?format=%t") result = sWeather