From 9b9af34bba6550f508c9165f4554176c689d205d Mon Sep 17 00:00:00 2001 From: Umputun Date: Sat, 8 Dec 2018 23:28:28 -0600 Subject: [PATCH] fix timeout description --- README.md | 2 +- app/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2e3c8a6..f94c8fd 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Use provided `docker-compose.yml` and change `FEED` value. All twiter-api creden ``` Application Options: -r, --refresh= refresh interval (default: 30s) [$REFRESH] - -t, --timeout= twitter timeout (default: 5s) [$TIMEOUT] + -t, --timeout= rss feed timeout (default: 5s) [$TIMEOUT] -f, --feed= rss feed url [$FEED] --consumer-key= twitter consumer key [$TWI_CONSUMER_KEY] --consumer-secret= twitter consumer secret [$TWI_CONSUMER_SECRET] diff --git a/app/main.go b/app/main.go index ef0336f..b3d1a3a 100644 --- a/app/main.go +++ b/app/main.go @@ -18,7 +18,7 @@ import ( var opts struct { Refresh time.Duration `short:"r" long:"refresh" env:"REFRESH" default:"30s" description:"refresh interval"` - TimeOut time.Duration `short:"t" long:"timeout" env:"TIMEOUT" default:"5s" description:"twitter timeout"` + TimeOut time.Duration `short:"t" long:"timeout" env:"TIMEOUT" default:"5s" description:"rss feed timeout"` Feed string `short:"f" long:"feed" env:"FEED" required:"true" description:"rss feed url"` ConsumerKey string `long:"consumer-key" env:"TWI_CONSUMER_KEY" required:"true" description:"twitter consumer key"`