proxy: Report warm cold start if connection is from the local cache (#7104)

## Problem

* quotes in serialized string
* no status if connection is from local cache

## Summary of changes

* remove quotes
* report warm if connection if from local cache
This commit is contained in:
Anna Khanova
2024-03-13 15:45:19 +04:00
committed by GitHub
parent 83855a907c
commit 0554bee022
4 changed files with 18 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ use crate::{
config::ProxyConfig,
console::{
errors::{GetAuthInfoError, WakeComputeError},
messages::ColdStartInfo,
CachedNodeInfo,
},
context::RequestMonitoring,
@@ -83,6 +84,7 @@ impl PoolingBackend {
};
if let Some(client) = maybe_client {
ctx.set_cold_start_info(ColdStartInfo::Warm);
return Ok(client);
}
let conn_id = uuid::Uuid::new_v4();