3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-14 07:59:31 +01:00

remove Server.commands

This commit is contained in:
Shivaram Lingamneni 2017-12-10 21:00:57 -05:00
parent b2afd55285
commit 62fc2c0cc3

View File

@ -83,7 +83,6 @@ type Server struct {
channelRegistry *ChannelRegistry channelRegistry *ChannelRegistry
checkIdent bool checkIdent bool
clients *ClientManager clients *ClientManager
commands chan Command
configFilename string configFilename string
configurableStateMutex sync.RWMutex // tier 1; generic protection for server state modified by rehash() configurableStateMutex sync.RWMutex // tier 1; generic protection for server state modified by rehash()
connectionLimiter *connection_limits.Limiter connectionLimiter *connection_limits.Limiter
@ -147,7 +146,6 @@ func NewServer(config *Config, logger *logger.Manager) (*Server, error) {
accounts: make(map[string]*ClientAccount), accounts: make(map[string]*ClientAccount),
channels: NewChannelManager(), channels: NewChannelManager(),
clients: NewClientManager(), clients: NewClientManager(),
commands: make(chan Command),
connectionLimiter: connection_limits.NewLimiter(), connectionLimiter: connection_limits.NewLimiter(),
connectionThrottler: connection_limits.NewThrottler(), connectionThrottler: connection_limits.NewThrottler(),
languages: NewLanguageManager(config.Languages.Default, config.Languages.Data), languages: NewLanguageManager(config.Languages.Default, config.Languages.Data),