logger.Fatal("Match join attempt queue size must be >= 1",zap.Int("match.join_attempt_queue_size",mainConfig.GetMatch().JoinAttemptQueueSize))
}
ifmainConfig.GetMatch().DeferredQueueSize<1{
logger.Fatal("Match deferred queue size must be >= 1",zap.Int("match.deferred_queue_size",mainConfig.GetMatch().DeferredQueueSize))
}
// If the runtime path is not overridden, set it to `datadir/modules`.
ifmainConfig.GetRuntime().Path==""{
@@ -474,6 +477,7 @@ type MatchConfig struct {
InputQueueSizeint`yaml:"input_queue_size" json:"input_queue_size" usage:"Size of the authoritative match buffer that stores client messages until they can be processed by the next tick. Default 128."`
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."`
}
// NewMatchConfig creates a new MatchConfig struct.