Skip to content

Commit caafc31

Browse files
committed
Remove forced golang.org/x/net import as it's unnecessary
Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent e57243c commit caafc31

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/stirling/testing/demo_apps/go_https/server/https_server.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,13 @@ import (
2424
"io"
2525
"log"
2626
"net/http"
27-
28-
"golang.org/x/net/http2"
2927
)
3028

3129
const (
3230
httpPort = 50100
3331
httpsPort = 50101
3432
)
3533

36-
// Import the http2 package to ensure golang.org/x/net exists within the binary's
37-
// buildinfo.
38-
var s http2.Server //nolint:unused
39-
4034
func basicHandler(w http.ResponseWriter, r *http.Request) {
4135
w.Header().Add("Content-Type", "application/json")
4236
_, err := io.WriteString(w, `{"status":"ok"}`)

0 commit comments

Comments
 (0)