mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
If we explicitly shut a node down, we don't want everyone else thinking it's up for the next 5 seconds. Worse, in CI, we have random long delays (10+ seconds) with no CPU activity at all, so we have to set the TTL longer there. Which makes any test checking for responsive detection of a node going down take even longer. So! We revoke leases on our way down, and this makes the tests not take so long, and allows us to have a reasonable timeout on the test, while having a completely unreasonable HeartbeatTTL to make CI stop breaking randomly. |
||
|---|---|---|
| .. | ||
| embed.go | ||
| leasedkv.go | ||
| leasedkv_test.go | ||