Skip to content

Commit

Permalink
Remove unused config 'matchmaker.batch_pool_size'. (#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejmrozinski committed Nov 8, 2023
1 parent 211f6d1 commit c9eae8b
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,6 @@ func CheckConfig(logger *zap.Logger, config Config) map[string]string {
if config.GetMatchmaker().MaxIntervals < 1 {
logger.Fatal("Matchmaker max intervals must be >= 1", zap.Int("matchmaker.max_intervals", config.GetMatchmaker().MaxIntervals))
}
if config.GetMatchmaker().BatchPoolSize < 1 {
logger.Fatal("Matchmaker batch pool size must be >= 1", zap.Int("matchmaker.batch_pool_size", config.GetMatchmaker().BatchPoolSize))
}
if config.GetMatchmaker().RevThreshold < 0 {
logger.Fatal("Matchmaker reverse matching threshold must be >= 0", zap.Int("matchmaker.rev_threshold", config.GetMatchmaker().RevThreshold))
}
Expand Down Expand Up @@ -980,22 +977,20 @@ func NewLeaderboardConfig() *LeaderboardConfig {
}

type MatchmakerConfig struct {
MaxTickets int `yaml:"max_tickets" json:"max_tickets" usage:"Maximum number of concurrent matchmaking tickets allowed per session or party. Default 3."`
IntervalSec int `yaml:"interval_sec" json:"interval_sec" usage:"How quickly the matchmaker attempts to form matches, in seconds. Default 15."`
MaxIntervals int `yaml:"max_intervals" json:"max_intervals" usage:"How many intervals the matchmaker attempts to find matches at the max player count, before allowing min count. Default 2."`
BatchPoolSize int `yaml:"batch_pool_size" json:"batch_pool_size" usage:"Number of concurrent indexing batches that will be allocated."`
RevPrecision bool `yaml:"rev_precision" json:"rev_precision" usage:"Reverse matching precision. Default false."`
RevThreshold int `yaml:"rev_threshold" json:"rev_threshold" usage:"Reverse matching threshold. Default 1."`
MaxTickets int `yaml:"max_tickets" json:"max_tickets" usage:"Maximum number of concurrent matchmaking tickets allowed per session or party. Default 3."`
IntervalSec int `yaml:"interval_sec" json:"interval_sec" usage:"How quickly the matchmaker attempts to form matches, in seconds. Default 15."`
MaxIntervals int `yaml:"max_intervals" json:"max_intervals" usage:"How many intervals the matchmaker attempts to find matches at the max player count, before allowing min count. Default 2."`
RevPrecision bool `yaml:"rev_precision" json:"rev_precision" usage:"Reverse matching precision. Default false."`
RevThreshold int `yaml:"rev_threshold" json:"rev_threshold" usage:"Reverse matching threshold. Default 1."`
}

func NewMatchmakerConfig() *MatchmakerConfig {
return &MatchmakerConfig{
MaxTickets: 3,
IntervalSec: 15,
MaxIntervals: 2,
BatchPoolSize: 32,
RevPrecision: false,
RevThreshold: 1,
MaxTickets: 3,
IntervalSec: 15,
MaxIntervals: 2,
RevPrecision: false,
RevThreshold: 1,
}
}

Expand Down

0 comments on commit c9eae8b

Please sign in to comment.