mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-28 05:52:05 -08:00
Make channels synchronous.
This commit is contained in:
parent
74aaf2f9d3
commit
0001131095
5 changed files with 7 additions and 7 deletions
|
|
@ -49,8 +49,8 @@ type ChannelCommand interface {
|
|||
// NewChannel creates a new channel from a `Server` and a `name` string, which
|
||||
// must be unique on the server.
|
||||
func NewChannel(s *Server, name string) *Channel {
|
||||
commands := make(chan ChannelCommand, 1)
|
||||
replies := make(chan Reply, 1)
|
||||
commands := make(chan ChannelCommand)
|
||||
replies := make(chan Reply)
|
||||
channel := &Channel{
|
||||
name: name,
|
||||
members: make(UserSet),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue