mirror of
https://github.com/garethgeorge/backrest.git
synced 2025-12-03 20:35:50 +00:00
chore: ensure first config access is through config manager
Some checks failed
Release Please / release-please (push) Has been cancelled
Build Snapshot Release / build (push) Has been cancelled
Build Snapshot Release / Windows installers (push) Has been cancelled
Test / test-nix (push) Has been cancelled
Test / test-win (push) Has been cancelled
Some checks failed
Release Please / release-please (push) Has been cancelled
Build Snapshot Release / build (push) Has been cancelled
Build Snapshot Release / Windows installers (push) Has been cancelled
Test / test-nix (push) Has been cancelled
Test / test-win (push) Has been cancelled
This commit is contained in:
@@ -64,12 +64,11 @@ func main() {
|
||||
go onterm(os.Interrupt, newForceKillHandler())
|
||||
|
||||
// Load the configuration
|
||||
configStore := createConfigProvider()
|
||||
cfg, err := configStore.Get()
|
||||
configMgr := &config.ConfigManager{Store: createConfigProvider()}
|
||||
cfg, err := configMgr.Get()
|
||||
if err != nil {
|
||||
zap.S().Fatalf("error loading config: %v", err)
|
||||
}
|
||||
configMgr := &config.ConfigManager{Store: configStore}
|
||||
|
||||
var wg sync.WaitGroup
|
||||
|
||||
|
||||
Reference in New Issue
Block a user