Skip to content

Commit

Permalink
Use context from stdlib in google physical backends (#4922)
Browse files Browse the repository at this point in the history
* Use context from stdlib in google physical backends

* Do not prefix logs (Vault will do it)
  • Loading branch information
sethvargo authored and jefferai committed Jul 13, 2018
1 parent 11c8eb8 commit 1ce2513
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion physical/gcs/gcs.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package gcs

import (
"context"
"errors"
"fmt"
"io/ioutil"
Expand All @@ -18,7 +19,6 @@ import (

"cloud.google.com/go/storage"
"github.com/armon/go-metrics"
"golang.org/x/net/context"
"google.golang.org/api/iterator"
"google.golang.org/api/option"
)
Expand Down
2 changes: 1 addition & 1 deletion physical/gcs/gcs_ha.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package gcs

import (
"context"
"encoding/json"
"fmt"
"sync"
Expand All @@ -12,7 +13,6 @@ import (
uuid "github.com/hashicorp/go-uuid"
"github.com/hashicorp/vault/physical"
"github.com/pkg/errors"
"golang.org/x/net/context"
"google.golang.org/api/googleapi"
)

Expand Down
2 changes: 1 addition & 1 deletion physical/gcs/gcs_ha_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package gcs

import (
"context"
"fmt"
"math/rand"
"os"
Expand All @@ -11,7 +12,6 @@ import (
log "github.com/hashicorp/go-hclog"
"github.com/hashicorp/vault/helper/logging"
"github.com/hashicorp/vault/physical"
"golang.org/x/net/context"
)

func TestHABackend(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion physical/gcs/gcs_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package gcs

import (
"context"
"fmt"
"math/rand"
"os"
Expand All @@ -11,7 +12,6 @@ import (
log "github.com/hashicorp/go-hclog"
"github.com/hashicorp/vault/helper/logging"
"github.com/hashicorp/vault/physical"
"golang.org/x/net/context"
"google.golang.org/api/googleapi"
)

Expand Down
2 changes: 1 addition & 1 deletion physical/spanner/spanner.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package spanner

import (
"context"
"fmt"
"os"
"sort"
Expand All @@ -20,7 +21,6 @@ import (

"cloud.google.com/go/spanner"
"github.com/pkg/errors"
"golang.org/x/net/context"
)

// Verify Backend satisfies the correct interfaces
Expand Down
2 changes: 1 addition & 1 deletion physical/spanner/spanner_ha.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package spanner

import (
"context"
"fmt"
"sync"
"time"
Expand All @@ -11,7 +12,6 @@ import (
uuid "github.com/hashicorp/go-uuid"
"github.com/hashicorp/vault/physical"
"github.com/pkg/errors"
"golang.org/x/net/context"
"google.golang.org/grpc/codes"
)

Expand Down
2 changes: 1 addition & 1 deletion physical/spanner/spanner_ha_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package spanner

import (
"context"
"os"
"testing"

"cloud.google.com/go/spanner"
log "github.com/hashicorp/go-hclog"
"github.com/hashicorp/vault/helper/logging"
"github.com/hashicorp/vault/physical"
"golang.org/x/net/context"
)

func TestHABackend(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion physical/spanner/spanner_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package spanner

import (
"context"
"os"
"testing"

"cloud.google.com/go/spanner"
log "github.com/hashicorp/go-hclog"
"github.com/hashicorp/vault/helper/logging"
"github.com/hashicorp/vault/physical"
"golang.org/x/net/context"
)

func testCleanup(t testing.TB, client *spanner.Client, table string) {
Expand Down

0 comments on commit 1ce2513

Please sign in to comment.