Skip to content

Commit 774334f

Browse files
committed
merge main and update go mod
Signed-off-by: alecholmez <[email protected]>
1 parent 7d7558e commit 774334f

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

Diff for: go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGX
99
github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk=
1010
github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158 h1:CevA8fI91PAnP8vpnXuB8ZYAZ5wqY86nAbxfgK8tWO4=
1111
github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
12+
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY=
13+
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
1214
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
1315
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1416
github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=

Diff for: pkg/test/main/main.go

-15
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"log"
2525
"net/http"
2626
"os"
27-
"runtime/pprof"
2827
"time"
2928

3029
"github.com/pkg/profile"
@@ -287,20 +286,6 @@ func main() {
287286
}
288287
}
289288

290-
if pprofEnabled {
291-
for _, prof := range []string{"block", "goroutine", "mutex"} {
292-
p := pprof.Lookup(prof)
293-
filePath := fmt.Sprintf("%s_profile_%s.pb.gz", prof, mode)
294-
log.Printf("storing %s profile for %s in %s", prof, mode, filePath)
295-
f, err := os.Create(filePath)
296-
if err != nil {
297-
log.Fatalf("could not create %s profile %s: %s", prof, filePath, err)
298-
}
299-
p.WriteTo(f, 1) // nolint:errcheck
300-
f.Close()
301-
}
302-
}
303-
304289
log.Printf("Test for %s passed!\n", mode)
305290
}
306291

0 commit comments

Comments
 (0)