add timeout flag to refresh

This commit is contained in:
nytpu
2021-03-23 08:12:53 -06:00
parent 9549e569f9
commit 2cd16124f8
4 changed files with 20 additions and 3 deletions
+5
View File
@@ -52,6 +52,11 @@ var (
`Number of worker threads to use when refreshing feeds. More is faster,
but there are more concurrent outgoing requests then.`,
)
refreshTimeoutFlag = commands["refresh"].IntP(
"timeout", "t",
10,
`Set a timeout for requests, in seconds.`,
)
// remove
removeFeedsFlag = commands["remove"].BoolP(