mirror of
https://github.com/zyycn/codex-proxy-rs.git
synced 2026-11-06 08:06:19 +00:00
refactor(store): make admin api key comments functional
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -81,7 +81,7 @@ pub trait ControlPlaneRepository: Send + Sync {
|
||||
replacement: ControlPlaneReplacement,
|
||||
) -> StoreResult<ControlPlaneSnapshot>;
|
||||
|
||||
/// 字段级更新 admin_api_key,不影响其它运行设置。
|
||||
/// 更新 admin_api_key 字段并推进 config revision。
|
||||
async fn replace_admin_api_key(
|
||||
&self,
|
||||
admin_api_key: Option<String>,
|
||||
|
||||
@@ -320,7 +320,7 @@ pub(crate) async fn bump_config_revision_in_transaction(
|
||||
Revision::new(u64::try_from(next).map_err(|_| invalid_numeric())?)
|
||||
}
|
||||
|
||||
/// 只更新 admin_api_key,不触碰其它运行设置字段。
|
||||
/// 更新 admin_api_key 字段,config revision 由调用方 bump。
|
||||
pub(crate) async fn update_admin_api_key_in_transaction(
|
||||
transaction: &mut Transaction<'_, Postgres>,
|
||||
admin_api_key: Option<String>,
|
||||
|
||||
Reference in New Issue
Block a user