Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
laurmaedje authored and nvarner committed Apr 5, 2023
1 parent 52c8d8f commit 11f3d27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ impl Backend {
);
}
join_all(notifications).await;

// garbage collect incremental cache. this evicts all memoized results
// that haven't been used in the last 30 compilations.
comemo::evict(30);
}

async fn signature_help(&self, _uri: Url, position: Position) -> Option<SignatureHelp> {
Expand Down

0 comments on commit 11f3d27

Please sign in to comment.