Skip to content

Commit

Permalink
Support for Go < 1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-lb authored and cenkalti committed Mar 9, 2017
1 parent ce70931 commit 8bd6a0c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion context.go
@@ -1,8 +1,9 @@
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: 2 additions & 1 deletion context_test.go
@@ -1,9 +1,10 @@
package backoff

import (
"context"
"testing"
"time"

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

func TestContext(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion example_test.go
@@ -1,8 +1,9 @@
package backoff

import (
"context"
"log"

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

func ExampleRetry() {
Expand Down
3 changes: 2 additions & 1 deletion retry_test.go
@@ -1,12 +1,13 @@
package backoff

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

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

func TestRetry(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion ticker_test.go
@@ -1,12 +1,13 @@
package backoff

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

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

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

0 comments on commit 8bd6a0c

Please sign in to comment.