Added migrations

This commit is contained in:
PB
2022-12-17 06:31:35 +01:00
parent 78418b230d
commit 0a684d45f9
9 changed files with 280 additions and 37 deletions

View File

@@ -68,10 +68,7 @@ func NewServer(conf *Config, logger *fluentd.Logger, db *pgxpool.Pool /*, ebCh *
interval := time.Second * 30
ticker := time.NewTicker(interval)
for range ticker.C {
err := s.updateKVConfig()
if err != nil {
logger.Log("KV config update error (skipping): %v\n", err)
}
s.updateKVConfig()
}
}(s)