Commit d371975
committed
fix(gateway): enable cluster sync without requiring BOOTNODE_URL
Previously, SYNC_ENABLED was tied to BOOTNODE_URL being set, creating a
chicken-and-egg problem: the first node in a cluster had no bootnode to
point to, so sync was disabled entirely.
Now sync is enabled whenever NODE_ID > 0. Peer auto-discovery works via
incoming sync connections — when another node syncs to us, WaveKV's
handle_sync automatically adds the sender as a peer. BOOTNODE_URL remains
optional for speeding up initial discovery.1 parent 9be18df commit d371975
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
47 | 51 | | |
48 | 52 | | |
49 | 53 | | |
| |||
0 commit comments