func intiliseTopology(flipper types.FlipperClient, sentinelManager *sentinel.SentinelManager) { topology := sentinelManager.GetCurrentTopology() flipper.InitialiseRunningState(&topology) }
func loopSentinelEvents(flipper types.FlipperClient, masterEvents chan types.MasterSwitchedEvent) { for event := range masterEvents { flipper.Orchestrate(event) } }