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

remove channel buffering

This commit is contained in:
Jeremy Latt 2014-02-19 18:22:57 -08:00
parent 6265b70622
commit af6a8ee6f0
2 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ func NewClient(server *Server, conn net.Conn) *Client {
phase: server.InitPhase(), phase: server.InitPhase(),
server: server, server: server,
socket: NewSocket(conn), socket: NewSocket(conn),
replies: make(chan Reply, 16), replies: make(chan Reply),
} }
client.loginTimer = time.AfterFunc(LOGIN_TIMEOUT, client.connectionTimeout) client.loginTimer = time.AfterFunc(LOGIN_TIMEOUT, client.connectionTimeout)

View File

@ -30,10 +30,10 @@ func NewServer(config *Config) *Server {
server := &Server{ server := &Server{
channels: make(ChannelNameMap), channels: make(ChannelNameMap),
clients: make(ClientNameMap), clients: make(ClientNameMap),
commands: make(chan Command, 16), commands: make(chan Command),
conns: make(chan net.Conn, 16), conns: make(chan net.Conn),
ctime: time.Now(), ctime: time.Now(),
idle: make(chan *Client, 16), idle: make(chan *Client),
motdFile: config.MOTD, motdFile: config.MOTD,
name: config.Name, name: config.Name,
operators: make(map[string]string), operators: make(map[string]string),