mirror of
https://github.com/grassrootseconomics/cic-chain-events.git
synced 2024-11-22 07:46:46 +01:00
fix: missing janitor count report
This commit is contained in:
parent
7b334e8691
commit
c03932138d
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
@ -38,8 +38,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Set outputs
|
- name: Set outputs
|
||||||
run: |
|
run: |
|
||||||
echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV \
|
||||||
echo "RELEASE_SHORT_COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
&& echo "RELEASE_SHORT_COMMIT=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build and push image
|
- name: Build and push image
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
@ -92,7 +92,7 @@ jobs:
|
|||||||
go-version: 'stable'
|
go-version: 'stable'
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v4
|
uses: goreleaser/goreleaser-action@v2
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
args: release --rm-dist
|
args: release --rm-dist
|
||||||
|
@ -99,7 +99,7 @@ func (j *Janitor) QueueMissingBlocks(ctx context.Context) error {
|
|||||||
|
|
||||||
missingBlockCountReport := j.stats.GetHeadCursor() - lowerBound
|
missingBlockCountReport := j.stats.GetHeadCursor() - lowerBound
|
||||||
if missingBlockCountReport > 10 {
|
if missingBlockCountReport > 10 {
|
||||||
j.logg.Info("janitor: missing blocks", "count")
|
j.logg.Info("janitor: missing blocks", "count", missingBlockCountReport)
|
||||||
}
|
}
|
||||||
|
|
||||||
rowsProcessed := 0
|
rowsProcessed := 0
|
||||||
|
Loading…
Reference in New Issue
Block a user