Skip to content

Commit cac90a6

Browse files
committed
chore(linter): fix order of imports
1 parent aa8c51c commit cac90a6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+89
-59
lines changed

backup.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,12 @@ import (
2323
"encoding/binary"
2424
"io"
2525

26+
"github.com/golang/protobuf/proto"
27+
"github.com/pkg/errors"
28+
2629
"github.com/dgraph-io/badger/v3/pb"
2730
"github.com/dgraph-io/badger/v3/y"
2831
"github.com/dgraph-io/ristretto/z"
29-
"github.com/golang/protobuf/proto"
30-
"github.com/pkg/errors"
3132
)
3233

3334
// flushThreshold determines when a buffer will be flushed. When performing a

backup_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ import (
2828
"testing"
2929
"time"
3030

31-
"github.com/dgraph-io/badger/v3/pb"
3231
"github.com/stretchr/testify/require"
32+
33+
"github.com/dgraph-io/badger/v3/pb"
3334
)
3435

3536
func TestBackupRestore1(t *testing.T) {

badger/cmd/backup.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ import (
2121
"math"
2222
"os"
2323

24-
"github.com/dgraph-io/badger/v3"
2524
"github.com/spf13/cobra"
25+
26+
"github.com/dgraph-io/badger/v3"
2627
)
2728

2829
var bo = struct {

badger/cmd/bank.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ import (
3030
"sync/atomic"
3131
"time"
3232

33+
"github.com/spf13/cobra"
34+
3335
"github.com/dgraph-io/badger/v3"
3436
"github.com/dgraph-io/badger/v3/pb"
3537
"github.com/dgraph-io/badger/v3/y"
3638
"github.com/dgraph-io/ristretto/z"
37-
"github.com/spf13/cobra"
3839
)
3940

4041
var testCmd = &cobra.Command{

badger/cmd/flatten.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ import (
2020
"fmt"
2121
"math"
2222

23-
"github.com/dgraph-io/badger/v3"
24-
"github.com/dgraph-io/badger/v3/options"
2523
"github.com/pkg/errors"
2624
"github.com/spf13/cobra"
25+
26+
"github.com/dgraph-io/badger/v3"
27+
"github.com/dgraph-io/badger/v3/options"
2728
)
2829

2930
var flattenCmd = &cobra.Command{

badger/cmd/info.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ import (
2727
"strings"
2828
"time"
2929

30+
humanize "github.com/dustin/go-humanize"
3031
"github.com/pkg/errors"
32+
"github.com/spf13/cobra"
3133

3234
"github.com/dgraph-io/badger/v3"
3335
"github.com/dgraph-io/badger/v3/options"
3436
"github.com/dgraph-io/badger/v3/table"
3537
"github.com/dgraph-io/badger/v3/y"
36-
humanize "github.com/dustin/go-humanize"
37-
"github.com/spf13/cobra"
3838
)
3939

4040
type flagOptions struct {

badger/cmd/restore.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ import (
2222
"os"
2323
"path/filepath"
2424

25-
"github.com/dgraph-io/badger/v3"
2625
"github.com/spf13/cobra"
26+
27+
"github.com/dgraph-io/badger/v3"
2728
)
2829

2930
var restoreFile string

badger/cmd/rotate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import (
2121
"os"
2222
"time"
2323

24-
"github.com/dgraph-io/badger/v3"
25-
2624
"github.com/spf13/cobra"
25+
26+
"github.com/dgraph-io/badger/v3"
2727
)
2828

2929
var oldKeyPath string

badger/cmd/rotate_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ import (
2222
"os"
2323
"testing"
2424

25+
"github.com/stretchr/testify/require"
26+
2527
"github.com/dgraph-io/badger/v3"
2628
"github.com/dgraph-io/badger/v3/y"
27-
"github.com/stretchr/testify/require"
2829
)
2930

3031
func TestRotate(t *testing.T) {

badger/cmd/stream.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ import (
2222
"math"
2323
"os"
2424

25+
"github.com/pkg/errors"
26+
"github.com/spf13/cobra"
27+
2528
"github.com/dgraph-io/badger/v3"
2629
"github.com/dgraph-io/badger/v3/options"
2730
"github.com/dgraph-io/badger/v3/y"
28-
"github.com/pkg/errors"
29-
"github.com/spf13/cobra"
3031
)
3132

3233
var streamCmd = &cobra.Command{

0 commit comments

Comments
 (0)