mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
Clarify cloud config refresh task ownership
This commit is contained in:
@@ -23,8 +23,8 @@ pub fn cloud_config_bundle_loader(
|
||||
CLOUD_CONFIG_BUNDLE_TIMEOUT,
|
||||
);
|
||||
let (loader, publisher) = CloudConfigBundleLoader::pending();
|
||||
// Intentionally detach the task that owns startup and refresh. Publishing
|
||||
// stops the lifecycle if this loader and all clones were dropped.
|
||||
// This task owns startup and background refresh, and exits once every
|
||||
// associated loader has been dropped.
|
||||
drop(tokio::spawn(async move {
|
||||
let result = service.load_startup_bundle().await;
|
||||
let (initial_bundle, refresh_in) = match result {
|
||||
|
||||
Reference in New Issue
Block a user