Consolidate battery metrics
This commit is contained in:
6
main.go
6
main.go
@@ -16,10 +16,10 @@ func main() {
|
||||
ctx, cncl := signal.NotifyContext(context.Background(), os.Kill, unix.SIGTERM)
|
||||
defer cncl()
|
||||
|
||||
// Read config and environment, set up logging, load up
|
||||
// an appCtx, and prepare ambient weather local exporter
|
||||
ctx = app.MustSetupConfigAndLogging(ctx)
|
||||
|
||||
aw := ambient.New(ctx)
|
||||
aw.MustInit()
|
||||
aw := ambient.New(ctx).Init()
|
||||
|
||||
awApp := app.App{
|
||||
AppContext: ctx,
|
||||
|
Reference in New Issue
Block a user