Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Conversation

chrismwendt
Copy link
Contributor

Previously, cache entries were never being evicted.

Now, go-langserver calls evicts cache entries oldest-first until the MaxCacheSizeBytes is satisfied when a connection is closed (e.g. WebSocket disconnect). BuildServer keeps track of archives it has opened (only the current repository for now), and implement io.Closer by Close()ing archives that it had opened, which in turn calls Evict().

Fixes sourcegraph/sourcegraph-go#20

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ensure that lang-go cache dir doesn't grow unbounded
2 participants