From bac51b28731fe6ce90645875789c345eaac710af Mon Sep 17 00:00:00 2001 From: Pavel Botsman <11509664+botsman@users.noreply.github.com> Date: Fri, 19 Sep 2025 13:35:14 +0300 Subject: [PATCH] get rid of main functions --- tools/certs/run.go | 2 +- tools/tpps/run.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/certs/run.go b/tools/certs/run.go index 3ba2a4e..597e7d5 100644 --- a/tools/certs/run.go +++ b/tools/certs/run.go @@ -8,7 +8,7 @@ import ( "time" ) -func main() { +func run() { ctx := context.Background() // Choose DB implementation here (Mongo or SQLite) db, err := setupMongoCertDb() diff --git a/tools/tpps/run.go b/tools/tpps/run.go index 803f3be..ccdfe7f 100644 --- a/tools/tpps/run.go +++ b/tools/tpps/run.go @@ -12,7 +12,7 @@ type Db interface { Disconnect(ctx context.Context) error } -func main() { +func run() { // Download and parse the registry // populate DB // 1. Download metadata at https://euclid.eba.europa.eu/register/api/filemetadata?t=1737374419184