Skip to content

Commit f95a46c

Browse files
committed
chore: update comments
1 parent 4238110 commit f95a46c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

crates/tabby-common/src/registry.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ fn models_json_file(registry: &str) -> PathBuf {
4040
}
4141

4242
async fn load_remote_registry(registry: &str) -> Result<Vec<ModelInfo>> {
43-
// Create a client with custom timeout.
44-
// There have been instances where requests did not adhere to the default timeout,
45-
// resulting in requests hanging indefinitely.
46-
// Therefore, it's necessary to specify a custom timeout.
43+
// Create an HTTP client with a custom timeout.
44+
// This is necessary because the default timeout settings can sometimes cause requests to hang indefinitely.
45+
// To prevent such issues, we specify a custom timeout duration.
4746
let client = reqwest::Client::builder()
4847
.timeout(std::time::Duration::from_secs(5))
4948
.build()

0 commit comments

Comments
 (0)