diff --git a/sdgb-cli/src/main.rs b/sdgb-cli/src/main.rs index e878f51..c5ae129 100644 --- a/sdgb-cli/src/main.rs +++ b/sdgb-cli/src/main.rs @@ -156,8 +156,6 @@ async fn main() -> Result<(), Box> { return Err("early skip due to ctrl-c")?; } - info!("processing: {user_id}"); - let resp = Sdgb1_50::request::<_, GetUserPreviewApiResp>( &client, APIMethod::GetUserPreviewApi, @@ -170,15 +168,15 @@ async fn main() -> Result<(), Box> { Ok(resp) => { use sdgb_api::bincode::encode_to_vec; + info!("found: {user_id}"); + if let Ok(mut table) = cache::open_table(&write) && let Ok(encoded) = encode_to_vec(resp, config) { _ = table.insert(resp.user_id, encoded); } } - Err(sdgb_api::ApiError::JSON { .. }) => { - warn!("account unregistered: {user_id}"); - } + Err(sdgb_api::ApiError::JSON { .. }) => {} Err(e) => { error!("preview failed: {e}"); }