logger.Fatal("Match max idle seconds must be >= 0",zap.Int("match.max_empty_sec",config.GetMatch().MaxEmptySec))
}
ifconfig.GetMatch().LabelUpdateIntervalMs<1{
logger.Fatal("Match label update interval milliseconds must be > 0",zap.Int("match.label_update_interval_ms",config.GetMatch().LabelUpdateIntervalMs))
}
ifconfig.GetTracker().EventQueueSize<1{
logger.Fatal("Tracker presence event queue size must be >= 1",zap.Int("tracker.event_queue_size",config.GetTracker().EventQueueSize))
}
@@ -791,6 +794,7 @@ type MatchConfig struct {
DeferredQueueSizeint`yaml:"deferred_queue_size" json:"deferred_queue_size" usage:"Size of the authoritative match buffer that holds deferred message broadcasts until the end of each loop execution. Default 128."`
JoinMarkerDeadlineMsint`yaml:"join_marker_deadline_ms" json:"join_marker_deadline_ms" usage:"Deadline in milliseconds that client authoritative match joins will wait for match handlers to acknowledge joins. Default 15000."`
MaxEmptySecint`yaml:"max_empty_sec" json:"max_empty_sec" usage:"Maximum number of consecutive seconds that authoritative matches are allowed to be empty before they are stopped. 0 indicates no maximum. Default 0."`
LabelUpdateIntervalMsint`yaml:"label_update_interval_ms" json:"label_update_interval_ms" usage:"Time in milliseconds between match label update batch processes. Default 1000."`
}
// NewMatchConfig creates a new MatchConfig struct.