Skip to content

Commit

Permalink
rate: use standard library context package
Browse files Browse the repository at this point in the history
Fixes golang/go#16745

Change-Id: I34f87a2ae570c2bb0ce9ccb72fc5be0d34266e49
Reviewed-on: https://go-review.googlesource.com/41194
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Dan Peterson <dpiddy@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
bradfitz committed Apr 20, 2017
1 parent f51c127 commit c06e80d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions rate/rate.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
package rate

import (
"context"
"fmt"
"math"
"sync"
"time"

"golang.org/x/net/context"
)

// Limit defines the maximum frequency of some events.
Expand Down
3 changes: 1 addition & 2 deletions rate/rate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@
package rate

import (
"context"
"math"
"runtime"
"sync"
"sync/atomic"
"testing"
"time"

"golang.org/x/net/context"
)

func TestLimit(t *testing.T) {
Expand Down

0 comments on commit c06e80d

Please sign in to comment.