Skip to main content

spawn_card_num_expand_retry

Function spawn_card_num_expand_retry 

Source
pub(crate) fn spawn_card_num_expand_retry(
    state: ServerState,
    key_store: Arc<KeyStore>,
)
Expand description

v1.4.105 eli #4 fix: 启动时后台 retry 把 KeyStore 的 allowed_card_nums resolve 成 allowed_acc_ids. 与 futu-opend daemon card_num_reload_and_expand_fn 启动 retry loop 同节奏 (6 × 10s).

失败模式:

  • daemon 未起来 → connect error → 等 10s 重试
  • daemon 起来但 GetAccList 失败 (尚未登录 / 无账户) → 等 10s 重试
  • 6 次都失败 → 放弃 (sentinel {0} 仍生效保护)