buffer all channels

This commit is contained in:
Jeremy Latt
2014-02-19 17:47:46 -08:00
parent f090c616b3
commit 95f267ea4f
3 changed files with 18 additions and 4 deletions
+3 -3
View File
@@ -30,10 +30,10 @@ func NewServer(config *Config) *Server {
server := &Server{
channels: make(ChannelNameMap),
clients: make(ClientNameMap),
commands: make(chan Command),
conns: make(chan net.Conn),
commands: make(chan Command, 16),
conns: make(chan net.Conn, 16),
ctime: time.Now(),
idle: make(chan *Client),
idle: make(chan *Client, 16),
motdFile: config.MOTD,
name: config.Name,
operators: make(map[string]string),