Add ClusterGracefulDrain feature flag (#37304)

* Add ClusterGracefulDrain feature flag

* Clarify ClusterGracefulDrain doc comment
This commit is contained in:
Jesse Hallam
2026-07-13 19:56:41 +00:00
committed by GitHub
parent 3bf22ab339
commit 5634530e64
+7
View File
@@ -133,12 +133,19 @@ type FeatureFlags struct {
// Enable the new mm_blocks Interactive Messages framework
MmBlocksEnabled bool
// ClusterGracefulDrain enables waiting for peer silence before closing the gossip
// socket during shutdown. Otherwise, peers keep sending messages before the gossip
// leave message finishes propagating and spam the logs with errors about the peer
// being unreachable.
ClusterGracefulDrain bool
ChannelBookmarks bool
}
func (f *FeatureFlags) SetDefaults() {
f.TestFeature = "off"
f.TestBoolFeature = false
f.ClusterGracefulDrain = true
f.EnableSharedChannelsDMs = false
f.EnableSyncAllUsersForRemoteCluster = false
f.AppsEnabled = false