* app: refactor: don't rewrite config file after filters are updated
This commit is contained in:
parent
eefdf8449a
commit
0884116de3
5
app.go
5
app.go
@ -127,11 +127,6 @@ func run(args options) {
|
|||||||
// Update filters we've just loaded right away, don't wait for periodic update timer
|
// Update filters we've just loaded right away, don't wait for periodic update timer
|
||||||
go func() {
|
go func() {
|
||||||
refreshFiltersIfNecessary(false)
|
refreshFiltersIfNecessary(false)
|
||||||
// Save the updated config
|
|
||||||
err := config.write()
|
|
||||||
if err != nil {
|
|
||||||
log.Fatal(err)
|
|
||||||
}
|
|
||||||
}()
|
}()
|
||||||
// Schedule automatic filters updates
|
// Schedule automatic filters updates
|
||||||
go periodicallyRefreshFilters()
|
go periodicallyRefreshFilters()
|
||||||
|
Loading…
Reference in New Issue
Block a user