* app: refactor: don't rewrite config file after filters are updated

This commit is contained in:
Simon Zolin 2019-03-18 15:08:23 +03:00
parent eefdf8449a
commit 0884116de3

5
app.go
View File

@ -127,11 +127,6 @@ func run(args options) {
// Update filters we've just loaded right away, don't wait for periodic update timer
go func() {
refreshFiltersIfNecessary(false)
// Save the updated config
err := config.write()
if err != nil {
log.Fatal(err)
}
}()
// Schedule automatic filters updates
go periodicallyRefreshFilters()