Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
empiredan committed Dec 13, 2024
1 parent fef664f commit 2c7b2a6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/meta/server_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3161,8 +3161,8 @@ void server_state::del_app_envs(const app_env_rpc &env_rpc)
return;
}

ainfo = *app;
app_path = get_app_path(*app);
ainfo = *app;
app_path = get_app_path(*app);
}

std::string deleted_keys_info("deleted keys:");
Expand All @@ -3172,18 +3172,18 @@ void server_state::del_app_envs(const app_env_rpc &env_rpc)
continue;
}

deleted_keys_info += fmt::format("\n {}", key);
++deleted_count;
deleted_keys_info += fmt::format("\n {}", key);
++deleted_count;
}

if (deleted_count == 0) {
std::string hint_message("no key need to delete");
LOG_INFO(hint_message);
env_rpc.response().hint_message = std::move(hint_message);
return;
}
}

env_rpc.response().hint_message = std::move(deleted_keys_info);
env_rpc.response().hint_message = std::move(deleted_keys_info);

do_update_app_info(app_path, ainfo, [this, app_name, keys, env_rpc](error_code ec) {
CHECK_EQ_MSG(ec, ERR_OK, "update app({}) info to remote storage failed", app_name);
Expand Down

0 comments on commit 2c7b2a6

Please sign in to comment.