refactor: imports

This commit is contained in:
l3uddz
2022-04-01 20:42:05 +01:00
parent a73b07a041
commit 19a5e73c19
40 changed files with 91 additions and 53 deletions
+2 -1
View File
@@ -3,11 +3,12 @@ package cache
import (
"context"
"fmt"
"time"
"github.com/dgraph-io/badger/v3"
"github.com/l3uddz/nabarr/logger"
"github.com/lefelys/state"
"github.com/rs/zerolog"
"time"
)
type Client struct {
+1
View File
@@ -2,6 +2,7 @@ package cache
import (
"fmt"
"github.com/dgraph-io/badger/v3"
)
+2 -1
View File
@@ -1,8 +1,9 @@
package cache
import (
"github.com/rs/zerolog"
"testing"
"github.com/rs/zerolog"
)
func TestClient_Delete(t *testing.T) {
+1
View File
@@ -2,6 +2,7 @@ package cache
import (
"fmt"
"github.com/dgraph-io/badger/v3"
)
+2 -1
View File
@@ -1,10 +1,11 @@
package cache
import (
"github.com/rs/zerolog"
"reflect"
"testing"
"time"
"github.com/rs/zerolog"
)
func TestClient_Get(t *testing.T) {
+2 -1
View File
@@ -2,8 +2,9 @@ package cache
import (
"fmt"
"github.com/dgraph-io/badger/v3"
"time"
"github.com/dgraph-io/badger/v3"
)
func (c *Client) Put(bucket string, key string, val []byte, ttl time.Duration) error {
+2 -1
View File
@@ -1,10 +1,11 @@
package cache
import (
"github.com/rs/zerolog"
"reflect"
"testing"
"time"
"github.com/rs/zerolog"
)
func TestClient_Put(t *testing.T) {
+2 -1
View File
@@ -1,8 +1,9 @@
package cache
import (
"github.com/dgraph-io/badger/v3"
"testing"
"github.com/dgraph-io/badger/v3"
)
func newDb(t *testing.T) *badger.DB {