Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch to the built-in context package #59

Merged
merged 1 commit into from
Jul 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
3 changes: 1 addition & 2 deletions context.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package backoff

import (
"context"
"time"

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

// BackOffContext is a backoff policy that stops retrying after the context
Expand Down
3 changes: 1 addition & 2 deletions context_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
package backoff

import (
"context"
"testing"
"time"

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

func TestContext(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions example_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package backoff

import (
"context"
"log"

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

func ExampleRetry() {
Expand Down
3 changes: 1 addition & 2 deletions retry_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package backoff

import (
"context"
"errors"
"fmt"
"log"
"testing"
"time"

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

func TestRetry(t *testing.T) {
Expand Down
3 changes: 1 addition & 2 deletions ticker_test.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package backoff

import (
"context"
"errors"
"fmt"
"log"
"testing"
"time"

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

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