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:
Eli Dowling 2024-02-06 18:57:57 +10:00 committed by GitHub
parent 32f73b7ea1
commit 9ba4436615
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -144,7 +144,7 @@ impl Registry {
}
///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>> {
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