Skip to content

Commit

Permalink
gopls/internal/util/lru: Move cache to its own internal utility in in…
Browse files Browse the repository at this point in the history
…ternal/lru

This change exposes the LRU cache for use in other modules, such as internal/imports,
which may use it in the future to support caching across repeated invocations.
  • Loading branch information
philip-peterson committed Apr 12, 2024
1 parent dd0410f commit 490a535
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gopls/internal/filecache/filecache.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import (
"time"

"golang.org/x/tools/gopls/internal/util/bug"
"golang.org/x/tools/gopls/internal/util/lru"
"golang.org/x/tools/internal/lru"
)

// Start causes the filecache to initialize and start garbage gollection.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package lru_test
import (
"testing"

"golang.org/x/tools/gopls/internal/util/lru"
"golang.org/x/tools/internal/lru"
)

// Simple fuzzing test for consistency.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"testing"

"golang.org/x/sync/errgroup"
"golang.org/x/tools/gopls/internal/util/lru"
"golang.org/x/tools/internal/lru"
)

func TestCache(t *testing.T) {
Expand Down

0 comments on commit 490a535

Please sign in to comment.