Skip to content

Commit

Permalink
switch to the built-in context package
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Jul 23, 2018
1 parent f756bc9 commit dffe0f6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: go
go:
- 1.3.3
- 1.7
- 1.x
- tip
before_install:
Expand Down
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package backoff
import (
"time"

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

// BackOffContext is a backoff policy that stops retrying after the context
Expand Down
2 changes: 1 addition & 1 deletion context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

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

func TestContext(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package backoff
import (
"log"

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

func ExampleRetry() {
Expand Down
2 changes: 1 addition & 1 deletion retry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

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

func TestRetry(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion ticker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

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

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

0 comments on commit dffe0f6

Please sign in to comment.