From c03932138d96945095c39cf0db4ddff6dc7f6afb Mon Sep 17 00:00:00 2001 From: Mohammed Sohail Date: Thu, 9 Mar 2023 08:33:09 +0000 Subject: [PATCH] fix: missing janitor count report --- .github/workflows/release.yaml | 6 +++--- internal/syncer/janitor.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4eae179..8e15d08 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -38,8 +38,8 @@ jobs: - name: Set outputs run: | - echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - echo "RELEASE_SHORT_COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV + echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV \ + && echo "RELEASE_SHORT_COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV - name: Build and push image uses: docker/build-push-action@v2 @@ -92,7 +92,7 @@ jobs: go-version: 'stable' - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v4 + uses: goreleaser/goreleaser-action@v2 with: version: latest args: release --rm-dist diff --git a/internal/syncer/janitor.go b/internal/syncer/janitor.go index c7d2f4b..28f7783 100644 --- a/internal/syncer/janitor.go +++ b/internal/syncer/janitor.go @@ -99,7 +99,7 @@ func (j *Janitor) QueueMissingBlocks(ctx context.Context) error { missingBlockCountReport := j.stats.GetHeadCursor() - lowerBound if missingBlockCountReport > 10 { - j.logg.Info("janitor: missing blocks", "count") + j.logg.Info("janitor: missing blocks", "count", missingBlockCountReport) } rowsProcessed := 0