add correct backfile

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-06-14 13:41:42 +02:00
commit 28e082f0fc
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
8 changed files with 317 additions and 35 deletions

View file

@ -41,11 +41,11 @@ func main() {
logger.Info("database connected")
st := store.New(pool)
snap := snapshot.New(st, logger, cfg.SnapshotHorizonDays)
pl := pipeline.New(st, pipeline.Config{
OpenFIGIKey: cfg.OpenFIGIKey,
CoinGeckoKey: cfg.CoinGeckoKey,
}, logger)
snap := snapshot.New(st, logger, cfg.SnapshotHorizonDays).WithBackfiller(pl)
sched := scheduler.New(logger)
sched.Add(scheduler.Job{