expose multiplex capacity as flag, un-global some more

This commit is contained in:
Serene Han 2016-06-12 00:20:54 -07:00
parent 2caa47988d
commit b6f15a8d5c
5 changed files with 20 additions and 21 deletions

View file

@ -30,7 +30,7 @@ type Peers struct {
// Construct a fresh container of remote peers.
func NewPeers(max int) *Peers {
p := &Peers{capacity: max}
// Use buffered go channel to pass new snowflakes onwards to the SOCKS handler.
// Use buffered go channel to pass snowflakes onwards to the SOCKS handler.
p.snowflakeChan = make(chan *webRTCConn, max)
p.activePeers = list.New()
return p