logger.Fatal("Match deferred queue size must be >= 1",zap.Int("match.deferred_queue_size",mainConfig.GetMatch().DeferredQueueSize))
}
ifmainConfig.GetMatch().JoinMarkerDeadlineMs<1{
logger.Fatal("Match join marker deadline must be >= 1",zap.Int("match.join_marker_deadline_ms",mainConfig.GetMatch().JoinMarkerDeadlineMs))
}
ifmainConfig.GetTracker().EventQueueSize<1{
logger.Fatal("Tracker presence event queue size must be >= 1",zap.Int("tracker.event_queue_size",mainConfig.GetTracker().EventQueueSize))
}
@@ -488,6 +491,7 @@ type MatchConfig struct {
CallQueueSizeint`yaml:"call_queue_size" json:"call_queue_size" usage:"Size of the authoritative match buffer that sequences calls to match handler callbacks to ensure no overlaps. Default 128."`
JoinAttemptQueueSizeint`yaml:"join_attempt_queue_size" json:"join_attempt_queue_size" usage:"Size of the authoritative match buffer that limits the number of in-progress join attempts. Default 128."`
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 5000."`
}
// NewMatchConfig creates a new MatchConfig struct.