mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Update crates/lang_srv/src/registry.rs
Co-authored-by: Ayaz <20735482+ayazhafiz@users.noreply.github.com> Signed-off-by: Eli Dowling <eli.jambu@gmail.com>
This commit is contained in:
parent
32f73b7ea1
commit
9ba4436615
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ impl Registry {
|
||||||
}
|
}
|
||||||
|
|
||||||
///Tries to get the latest document from analysis.
|
///Tries to get the latest document from analysis.
|
||||||
///Gives up and returns none aft 5 seconds.
|
///Gives up and returns none after 5 seconds.
|
||||||
async fn latest_document_by_url(&self, url: &Url) -> Option<Arc<AnalyzedDocument>> {
|
async fn latest_document_by_url(&self, url: &Url) -> Option<Arc<AnalyzedDocument>> {
|
||||||
tokio::time::timeout(self.config.latest_document_timeout, async {
|
tokio::time::timeout(self.config.latest_document_timeout, async {
|
||||||
//TODO: This should really be a condvar that is triggered by the latest being ready, this will do for now though
|
//TODO: This should really be a condvar that is triggered by the latest being ready, this will do for now though
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue