Skip to content

Commit c06e80d

Browse files
committed
rate: use standard library context package
Fixes golang/go#16745 Change-Id: I34f87a2ae570c2bb0ce9ccb72fc5be0d34266e49 Reviewed-on: https://go-review.googlesource.com/41194 Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Dan Peterson <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent f51c127 commit c06e80d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

rate/rate.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@
66
package rate
77

88
import (
9+
"context"
910
"fmt"
1011
"math"
1112
"sync"
1213
"time"
13-
14-
"golang.org/x/net/context"
1514
)
1615

1716
// Limit defines the maximum frequency of some events.

rate/rate_test.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
package rate
66

77
import (
8+
"context"
89
"math"
910
"runtime"
1011
"sync"
1112
"sync/atomic"
1213
"testing"
1314
"time"
14-
15-
"golang.org/x/net/context"
1615
)
1716

1817
func TestLimit(t *testing.T) {

0 commit comments

Comments
 (0)