Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
samsondav committed Dec 17, 2024
1 parent 7e26fcb commit 4141159
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/services/llo/observation_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func createBridge(t *testing.T, name string, val string, borm bridges.ORM, maxCa
bridge := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {
callcount++
if callcount > maxCalls {
panic(fmt.Sprintf("too many calls to bridge %s", name))
panic("too many calls to bridge" + name)
}
_, herr := io.ReadAll(req.Body)
if herr != nil {
Expand Down Expand Up @@ -326,9 +326,8 @@ result3 -> result3_parse -> multiply3;
opts := llo.DSOpts(nil)

// concurrency stress test
oc = newObservationContext(r, telem)
g, ctx := errgroup.WithContext(ctx)
for i := 0; i < 1000; i++ {
for i := uint32(0); i < 1000; i++ {
strmID := streams.StreamID(1 + i%3)

Check failure on line 331 in core/services/llo/observation_context_test.go

View workflow job for this annotation

GitHub Actions / lint

unnecessary conversion (unconvert)
g.Go(func() error {
_, err := oc.Observe(ctx, strmID, opts)
Expand Down

0 comments on commit 4141159

Please sign in to comment.