From 5ffb6373219ae7d818e07452727ea7f248b0a08c Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 17 Mar 2025 16:10:38 +0100 Subject: [PATCH] Remove geoip db loading fallback with binary index --- service/intel/geoip/database.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/service/intel/geoip/database.go b/service/intel/geoip/database.go index 711fafdf..85ddadde 100644 --- a/service/intel/geoip/database.go +++ b/service/intel/geoip/database.go @@ -56,15 +56,8 @@ func (ub *updateBroadcaster) AvailableUpdate() *updates.Artifact { // Get artifact. artifact, err := module.instance.IntelUpdates().GetFile(ub.dbName) if err != nil { - // Check if the geoip database is included in the binary index instead. - // TODO: Remove when intelhub builds the geoip database. - if artifact2, err2 := module.instance.BinaryUpdates().GetFile(ub.dbName); err2 == nil { - artifact = artifact2 - err = nil - } else { - log.Warningf("geoip: failed to get geoip update: %s", err) - return nil - } + log.Warningf("geoip: failed to get geoip update: %s", err) + return nil } // Return artifact if not yet initialized.