Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
oncilla committed Sep 17, 2024
1 parent 66f2f29 commit b5bc0ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ go_rules_dependencies()

go_register_toolchains(
nogo = "@//:nogo",
version = "1.23.1",
version = "1.22.7",
)

# Gazelle
Expand Down
11 changes: 3 additions & 8 deletions private/xhack/godebug.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
// standard library or other packages.
package xhack

import (
"os"
"strings"
)

// AsynctimerchanOn enables the asynctimerchan debug option. This option disable
// the new timer behavior that was introduced in Go 1.23 (see
// https://tip.golang.org/doc/go1.23#timer-changes).
Expand All @@ -31,7 +26,7 @@ import (
// This function should be called at the beginning of the main function of the
// applications that have a dependency (direct or indirect) on quic-go.
func AsynctimerchanOn() {
if d := os.Getenv("GODEBUG"); !strings.Contains(d, "asynctimerchan") {
os.Setenv("GODEBUG", d+",asynctimerchan=1")
}
//FIXME if d := os.Getenv("GODEBUG"); !strings.Contains(d, "asynctimerchan") {
// os.Setenv("GODEBUG", d+",asynctimerchan=1")
//}
}

0 comments on commit b5bc0ab

Please sign in to comment.