mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 17:54:01 +03:00
Notify that blocklist were updated
This commit is contained in:
@@ -95,6 +95,8 @@ func (f *Firehol) Run(updateEach time.Duration) {
|
|||||||
|
|
||||||
if err := f.update(); err != nil {
|
if err := f.update(); err != nil {
|
||||||
f.logger.WarningError("cannot update blocklist", err)
|
f.logger.WarningError("cannot update blocklist", err)
|
||||||
|
} else {
|
||||||
|
f.logger.Info("blocklist was updated")
|
||||||
}
|
}
|
||||||
|
|
||||||
for {
|
for {
|
||||||
@@ -104,6 +106,8 @@ func (f *Firehol) Run(updateEach time.Duration) {
|
|||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
if err := f.update(); err != nil {
|
if err := f.update(); err != nil {
|
||||||
f.logger.WarningError("cannot update blocklist", err)
|
f.logger.WarningError("cannot update blocklist", err)
|
||||||
|
} else {
|
||||||
|
f.logger.Info("blocklist was updated")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user