Skip to content

Commit 78e2829

Browse files
committed
uncomment env check
1 parent 8b62536 commit 78e2829

File tree

1 file changed

+4
-3
lines changed
  • _examples/experimental/http2

1 file changed

+4
-3
lines changed

_examples/experimental/http2/main.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"os/signal"
1212
"runtime"
1313
"strconv"
14+
"strings"
1415
"syscall"
1516
"time"
1617

@@ -77,9 +78,9 @@ func channelSubscribeAllowed(channel string) bool {
7778
}
7879

7980
func main() {
80-
//if !strings.Contains(os.Getenv("GODEBUG"), "http2xconnect=1") {
81-
// panic("required to use GODEBUG=http2xconnect=1")
82-
//}
81+
if !strings.Contains(os.Getenv("GODEBUG"), "http2xconnect=1") {
82+
panic("required to use GODEBUG=http2xconnect=1")
83+
}
8384

8485
flag.Parse()
8586

0 commit comments

Comments
 (0)