2
0
mirror of https://github.com/soheilhy/cmux.git synced 2025-01-18 18:56:26 +08:00

rely on project to call flag.Parse rather than when used as library

This commit is contained in:
Ethan Mosbaugh 2016-02-09 07:53:32 -08:00
parent 563c371a98
commit 4ebe86a5a2

View File

@ -1,7 +1,6 @@
package cmux
import (
"flag"
"fmt"
"io"
"net"
@ -40,10 +39,6 @@ var (
// New instantiates a new connection multiplexer.
func New(l net.Listener) CMux {
if !flag.Parsed() {
flag.Parse()
}
return &cMux{
root: l,
bufLen: 1024,