chore: remove as_millis_f64

This commit is contained in:
Ning Sun
2026-03-24 14:59:47 +08:00
parent 74ebb8137a
commit be27fa7add
2 changed files with 2 additions and 4 deletions

View File

@@ -575,12 +575,12 @@ macro_rules! record_rds_sql_execute_elapsed {
.inspect(|_| {
$crate::metrics::RDS_SQL_EXECUTE_ELAPSED
.with_label_values(&[$label_store, "success", $label_op, $label_type])
.observe(timer.elapsed().as_millis_f64())
.observe(timer.elapsed().as_millis() as f64)
})
.inspect_err(|_| {
$crate::metrics::RDS_SQL_EXECUTE_ELAPSED
.with_label_values(&[$label_store, "error", $label_op, $label_type])
.observe(timer.elapsed().as_millis_f64());
.observe(timer.elapsed().as_millis() as f64);
})
}};
}

View File

@@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.
#![feature(duration_millis_float)]
pub mod cache;
pub mod cache_invalidator;
pub mod cluster;