From b988bf7b59720ca50da207313a633fd3deeadad8 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Thu, 28 Sep 2023 17:46:48 +0800 Subject: [PATCH] missing env wiring --- pkg/snapshot/config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/snapshot/config.go b/pkg/snapshot/config.go index 14cc651..72a4066 100644 --- a/pkg/snapshot/config.go +++ b/pkg/snapshot/config.go @@ -161,6 +161,8 @@ func (c *ServiceConfig) Init() error { viper.BindEnv(SNAPSHOT_BLOCK_HEIGHT_TOML, SNAPSHOT_BLOCK_HEIGHT) viper.BindEnv(SNAPSHOT_MODE_TOML, SNAPSHOT_MODE) viper.BindEnv(SNAPSHOT_WORKERS_TOML, SNAPSHOT_WORKERS) + viper.BindEnv(SNAPSHOT_RECOVERY_FILE_TOML, SNAPSHOT_RECOVERY_FILE) + viper.BindEnv(PROM_HTTP_TOML, PROM_HTTP) viper.BindEnv(PROM_HTTP_ADDR_TOML, PROM_HTTP_ADDR) viper.BindEnv(PROM_METRICS_TOML, PROM_METRICS)