mirror of
https://github.com/soheilhy/cmux.git
synced 2026-08-07 12:49:19 +08:00
Replace log.Fatal with log.Panic
This commit is contained in:
@@ -71,7 +71,7 @@ func serveGRPC(l net.Listener) {
|
||||
func Example() {
|
||||
l, err := net.Listen("tcp", "127.0.0.1:50051")
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
log.Panic(err)
|
||||
}
|
||||
|
||||
m := cmux.New(l)
|
||||
|
||||
Reference in New Issue
Block a user