b09c9f183c
+ moved infra/sync-cfg to infra/sync-consumer-cfg + adjut anything related to old infra/sync + infra/sync is now have new setting for the sync
16 lines
371 B
Go
16 lines
371 B
Go
package synccfg
|
|
|
|
import (
|
|
a "github.com/karincake/apem"
|
|
lo "github.com/karincake/apem/loggero"
|
|
)
|
|
|
|
func SetConfig() {
|
|
a.ParseSingleCfg(&O)
|
|
|
|
if O.NewSecretKey == "" || O.NewHost == "" || O.OldSecretKey == "" || O.OldHost == "" {
|
|
panic("secret key and host of the sync partner config can not be empty")
|
|
}
|
|
lo.I.Println("sync partner config loaded, status: DONE!!")
|
|
}
|