machinefi / w3bstream

Decentralized Infra for Connecting Smart Devices to Smart Contracts
https://w3bstream.com/
Apache License 2.0
174 stars 34 forks source link

[global] Move App.Conf config elements to a single struct #199

Closed saitofun closed 1 year ago

saitofun commented 1 year ago

https://github.com/machinefi/w3bstream/blob/e5b5a8793600b9e547898b55e645d9802bdcb1b0/cmd/srv-applet-mgr/global/config.go#L26-L38 As global config of a service, move all config elements to a single struct to avoid config name conflict. like below

type config struct {
    DB1 *pg.Endpoint 
    DB2 *pg.Endpoint
    // other config fields...
}
saitofun commented 1 year ago

pr #232