codex: clarify remote marketplace cache helper

This commit is contained in:
xli-oai
2026-05-12 23:47:37 -07:00
parent a0de847e6c
commit c2be76c6a9
+2 -2
View File
@@ -844,7 +844,7 @@ impl PluginsManager {
});
}
fn cached_remote_marketplaces(
fn prune_and_get_cached_remote_marketplaces(
&self,
cache_key: &RemoteMarketplacesCacheKey,
) -> Option<Vec<RemoteMarketplace>> {
@@ -935,7 +935,7 @@ impl PluginsManager {
) -> Result<Vec<RemoteMarketplace>, RemotePluginCatalogError> {
let cache_key = remote_marketplaces_cache_key(config, auth, sources);
loop {
if let Some(marketplaces) = self.cached_remote_marketplaces(&cache_key) {
if let Some(marketplaces) = self.prune_and_get_cached_remote_marketplaces(&cache_key) {
return Ok(marketplaces);
}