mapper: produce map before poll (#2628)
This commit is contained in:
parent
b2a18830ed
commit
a058bf3cd3
70 changed files with 5771 additions and 2475 deletions
|
|
@ -234,6 +234,7 @@ type Tuning struct {
|
|||
NotifierSendTimeout time.Duration
|
||||
BatchChangeDelay time.Duration
|
||||
NodeMapSessionBufferedChanSize int
|
||||
BatcherWorkers int
|
||||
}
|
||||
|
||||
func validatePKCEMethod(method string) error {
|
||||
|
|
@ -991,6 +992,12 @@ func LoadServerConfig() (*Config, error) {
|
|||
NodeMapSessionBufferedChanSize: viper.GetInt(
|
||||
"tuning.node_mapsession_buffered_chan_size",
|
||||
),
|
||||
BatcherWorkers: func() int {
|
||||
if workers := viper.GetInt("tuning.batcher_workers"); workers > 0 {
|
||||
return workers
|
||||
}
|
||||
return DefaultBatcherWorkers()
|
||||
}(),
|
||||
},
|
||||
}, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue