From 023c35b99b3800ba06ceba78281505ae0bbdbb0b Mon Sep 17 00:00:00 2001 From: ygelfand Date: Wed, 21 Feb 2024 07:01:14 -0500 Subject: [PATCH] remove junk, add armv7 Signed-off-by: ygelfand --- .github/workflows/ci.yaml | 2 +- internal/api/app.go | 1 - internal/api/debug.go | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f612ae9..6b03b07 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -38,7 +38,7 @@ jobs: context: . build-args: | "BUILD_VERSION=${{ steps.meta.outputs.version }}" - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm64,linux/arm/v7 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/internal/api/app.go b/internal/api/app.go index cddf5db..1ae5bfa 100644 --- a/internal/api/app.go +++ b/internal/api/app.go @@ -17,7 +17,6 @@ func NewApi(p *powerwall.PowerwallGateway, forceRefresh bool) *Api { } func (api *Api) Run(listen string) { - gin.LoggerWithWriter router := gin.Default() router.SetTrustedProxies(nil) base := router.Group("/api") diff --git a/internal/api/debug.go b/internal/api/debug.go index b49ff6e..0c99246 100644 --- a/internal/api/debug.go +++ b/internal/api/debug.go @@ -8,7 +8,6 @@ func (app *Api) debugConfig(c *gin.Context) { if app.forceRefresh || c.Query("refresh") == "true" { app.powerwall.UpdateConfig() } - c c.JSON(200, app.powerwall.Config) }