[WIP] working download and replace.

This commit is contained in:
Vladimir Stoilov
2024-08-30 12:40:51 +03:00
parent f7abb700bf
commit 701505ae75
18 changed files with 168 additions and 276 deletions

View File

@@ -19,7 +19,7 @@ func (g *GeoIP) Manager() *mgr.Manager {
}
func (g *GeoIP) Start() error {
module.instance.Updates().EventResourcesUpdated.AddCallback(
module.instance.IntelUpdates().EventResourcesUpdated.AddCallback(
"Check for GeoIP database updates",
func(_ *mgr.WorkerCtx, _ struct{}) (bool, error) {
worker.triggerUpdate()
@@ -66,5 +66,5 @@ func New(instance instance) (*GeoIP, error) {
}
type instance interface {
Updates() *updates.Updates
IntelUpdates() *updates.Updates
}