Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zkokelj committed Feb 16, 2024
1 parent d14422c commit 1ba576f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tools/walletextension/cache/RistrettoCache.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package cache

import (
"github.com/ethereum/go-ethereum/log"
"time"

"github.com/ethereum/go-ethereum/log"

"github.com/dgraph-io/ristretto"
)

Expand Down
3 changes: 2 additions & 1 deletion tools/walletextension/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"crypto/sha256"
"encoding/json"
"fmt"
"github.com/ethereum/go-ethereum/log"
"time"

"github.com/ethereum/go-ethereum/log"

"github.com/ten-protocol/go-ten/tools/walletextension/common"
)

Expand Down
5 changes: 4 additions & 1 deletion tools/walletextension/cache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import (
"testing"
"time"

"github.com/ethereum/go-ethereum/log"

"github.com/ten-protocol/go-ten/tools/walletextension/common"
)

Expand All @@ -31,7 +33,8 @@ func TestGatewayCaching(t *testing.T) {
// cache tests
for name, test := range cacheTests {
t.Run(name, func(t *testing.T) {
cache, err := NewCache()
logger := log.New()
cache, err := NewCache(logger)
if err != nil {
t.Errorf("failed to create cache: %v", err)
}
Expand Down

0 comments on commit 1ba576f

Please sign in to comment.