Run goimports (#8251)

This commit is contained in:
Jim Kalafut 2020-01-27 21:11:00 -08:00 committed by GitHub
parent 0ebf3c3e40
commit f17fc4e5c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 10 deletions

View File

@ -3,7 +3,6 @@ package server
import (
"errors"
"fmt"
"github.com/hashicorp/vault/sdk/helper/jsonutil"
"io"
"io/ioutil"
"os"
@ -16,6 +15,7 @@ import (
"github.com/hashicorp/go-multierror"
"github.com/hashicorp/hcl"
"github.com/hashicorp/hcl/hcl/ast"
"github.com/hashicorp/vault/sdk/helper/jsonutil"
"github.com/hashicorp/vault/sdk/helper/parseutil"
)

View File

@ -4,10 +4,10 @@ import (
"context"
"crypto/tls"
"errors"
"github.com/hashicorp/vault/physical/raft"
"io"
"net/http"
"github.com/hashicorp/vault/physical/raft"
"github.com/hashicorp/vault/sdk/helper/tlsutil"
"github.com/hashicorp/vault/vault"
)

View File

@ -5,8 +5,6 @@ import (
"crypto/tls"
"errors"
"fmt"
"github.com/hashicorp/vault/sdk/helper/jsonutil"
"github.com/hashicorp/vault/sdk/helper/tlsutil"
"io"
"io/ioutil"
"os"
@ -26,11 +24,12 @@ import (
snapshot "github.com/hashicorp/raft-snapshot"
raftboltdb "github.com/hashicorp/vault/physical/raft/logstore"
"github.com/hashicorp/vault/sdk/helper/consts"
"github.com/hashicorp/vault/sdk/helper/jsonutil"
"github.com/hashicorp/vault/sdk/helper/tlsutil"
"github.com/hashicorp/vault/sdk/logical"
"github.com/hashicorp/vault/sdk/physical"
"github.com/hashicorp/vault/vault/cluster"
"github.com/hashicorp/vault/vault/seal"
"github.com/hashicorp/vault/sdk/physical"
)
// EnvVaultRaftNodeID is used to fetch the Raft node ID from the environment.

View File

@ -170,7 +170,7 @@ func (c *mongoDBConnectionProducer) Close() error {
defer c.Unlock()
if c.client != nil {
ctx, cancel := context.WithTimeout(context.Background(), 1 * time.Minute)
ctx, cancel := context.WithTimeout(context.Background(), 1*time.Minute)
defer cancel()
if err := c.client.Disconnect(ctx); err != nil {
return err

View File

@ -5,7 +5,6 @@ import (
"context"
"crypto/md5"
"fmt"
"github.com/hashicorp/vault/helper/namespace"
"io/ioutil"
"net/http"
"strings"
@ -16,6 +15,7 @@ import (
"github.com/hashicorp/go-cleanhttp"
uuid "github.com/hashicorp/go-uuid"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/helper/namespace"
"github.com/hashicorp/vault/helper/testhelpers"
"github.com/hashicorp/vault/helper/testhelpers/teststorage"
vaulthttp "github.com/hashicorp/vault/http"

View File

@ -5,7 +5,6 @@ import (
"encoding/base64"
"errors"
"fmt"
"github.com/hashicorp/vault/sdk/helper/tlsutil"
"math"
"net/http"
"net/url"
@ -16,13 +15,13 @@ import (
"github.com/golang/protobuf/proto"
"github.com/hashicorp/errwrap"
cleanhttp "github.com/hashicorp/go-cleanhttp"
wrapping "github.com/hashicorp/go-kms-wrapping"
uuid "github.com/hashicorp/go-uuid"
"github.com/hashicorp/vault/api"
"github.com/hashicorp/vault/physical/raft"
"github.com/hashicorp/vault/sdk/helper/jsonutil"
"github.com/hashicorp/vault/sdk/helper/tlsutil"
"github.com/hashicorp/vault/sdk/logical"
"github.com/hashicorp/vault/vault/seal"
"github.com/mitchellh/mapstructure"