mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
expose multiplex capacity as flag, un-global some more
This commit is contained in:
parent
2caa47988d
commit
b6f15a8d5c
5 changed files with 20 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue