Minor cleanup

This commit is contained in:
Richard Patel
2018-12-18 15:31:33 +01:00
parent 4b8275c7bf
commit b244cdae80
3 changed files with 11 additions and 13 deletions

View File

@@ -21,8 +21,6 @@ var config struct {
Workers int
UserAgent string
Tasks int32
CrawlStats time.Duration
AllocStats time.Duration
Verbose bool
PrintHTTP bool
JobBufferSize int
@@ -125,10 +123,6 @@ func readConfig() {
config.JobBufferSize = viper.GetInt(ConfJobBufferSize)
config.CrawlStats = viper.GetDuration(ConfCrawlStats)
config.AllocStats = viper.GetDuration(ConfAllocStats)
config.Verbose = viper.GetBool(ConfVerbose)
if config.Verbose {
logrus.SetLevel(logrus.DebugLevel)