Skip to content

Commit

Permalink
http2: drop unused retry function
Browse files Browse the repository at this point in the history
Change-Id: Ibe7e022a4863c8b0e502d7952b870046443acf7e
Reviewed-on: https://go-review.googlesource.com/c/net/+/586248
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
neild committed May 28, 2024
1 parent 03c24c2 commit 9f5b79b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions http2/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -481,18 +481,6 @@ func TestTransportGroupsPendingDials(t *testing.T) {
}
}

func retry(tries int, delay time.Duration, fn func() error) error {
var err error
for i := 0; i < tries; i++ {
err = fn()
if err == nil {
return nil
}
time.Sleep(delay)
}
return err
}

func TestTransportAbortClosesPipes(t *testing.T) {
shutdown := make(chan struct{})
ts := newTestServer(t,
Expand Down

0 comments on commit 9f5b79b

Please sign in to comment.