3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19: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(),
server: server,
socket: NewSocket(conn),
replies: make(chan Reply, 16),
replies: make(chan Reply),
}
client.loginTimer = time.AfterFunc(LOGIN_TIMEOUT, client.connectionTimeout)

View File

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