Skip to content

Commit

Permalink
fix: Fix a bug where hubs would report status incorrectly. (#1245)
Browse files Browse the repository at this point in the history
* fix: Handle undefined syncstatus

* changeset
  • Loading branch information
adityapk00 authored Aug 10, 2023
1 parent 5e96e13 commit 6bb1b43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lovely-parents-remain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@farcaster/hubble": patch
---

fix: Handle sync status reporting properly
2 changes: 1 addition & 1 deletion apps/hubble/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ app
}

const numPeers = msgPercents.length;
if (!syncEngingStarted) {
if (syncEngingStarted === false && numPeers === 0) {
logger.info("Sync Status: Getting blockchain events (Sync not started yet)");
} else if (numPeers === 0) {
logger.info("Sync Status: No peers");
Expand Down

0 comments on commit 6bb1b43

Please sign in to comment.