1
0
Fork 0
forked from External/ergo

add Semaphore and ServerSemaphores

This commit is contained in:
Shivaram Lingamneni 2018-04-24 20:34:28 -04:00
parent 6533893863
commit ebfef1e848
4 changed files with 98 additions and 16 deletions

View file

@ -131,6 +131,7 @@ type Server struct {
webirc []webircConfig
whoWas *WhoWasList
stats *Stats
semaphores *ServerSemaphores
}
var (
@ -165,6 +166,7 @@ func NewServer(config *Config, logger *logger.Manager) (*Server, error) {
snomasks: NewSnoManager(),
whoWas: NewWhoWasList(config.Limits.WhowasEntries),
stats: NewStats(),
semaphores: NewServerSemaphores(),
}
if err := server.applyConfig(config, true); err != nil {