Skip to content

Commit 2560bde

Browse files
committed
chore: ensure first config access is through config manager
1 parent da0ac09 commit 2560bde

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

cmd/backrest/backrest.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,11 @@ func main() {
6464
go onterm(os.Interrupt, newForceKillHandler())
6565

6666
// Load the configuration
67-
configStore := createConfigProvider()
68-
cfg, err := configStore.Get()
67+
configMgr := &config.ConfigManager{Store: createConfigProvider()}
68+
cfg, err := configMgr.Get()
6969
if err != nil {
7070
zap.S().Fatalf("error loading config: %v", err)
7171
}
72-
configMgr := &config.ConfigManager{Store: configStore}
7372

7473
var wg sync.WaitGroup
7574

0 commit comments

Comments
 (0)