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:
parent
6265b70622
commit
af6a8ee6f0
@ -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)
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user