File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -1593,8 +1593,8 @@ mod test_metricsregistry_nats {
1593
1593
(
1594
1594
build_component_metric_name ( nats_service:: REQUESTS_TOTAL ) ,
1595
1595
0.0 ,
1596
- 0 .0,
1597
- ) , // No work handler requests
1596
+ 10 .0,
1597
+ ) , // NATS service stats requests (may differ from work handler count)
1598
1598
(
1599
1599
build_component_metric_name ( nats_service:: PROCESSING_MS_TOTAL ) ,
1600
1600
0.0 ,
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ impl KeyValueBucket for EtcdBucket {
70
70
}
71
71
72
72
async fn get ( & self , key : & Key ) -> Result < Option < bytes:: Bytes > , StorageError > {
73
- let k = format ! ( "{}/{key}" , self . bucket_name) ;
73
+ let k = make_key ( & self . bucket_name , key ) ;
74
74
tracing:: trace!( "etcd get: {k}" ) ;
75
75
76
76
let mut kvs = self
@@ -86,9 +86,11 @@ impl KeyValueBucket for EtcdBucket {
86
86
}
87
87
88
88
async fn delete ( & self , key : & Key ) -> Result < ( ) , StorageError > {
89
+ let k = make_key ( & self . bucket_name , key) ;
90
+ tracing:: trace!( "etcd delete: {k}" ) ;
89
91
let _ = self
90
92
. client
91
- . kv_delete ( key . 0 . clone ( ) , None )
93
+ . kv_delete ( k , None )
92
94
. await
93
95
. map_err ( |e| StorageError :: EtcdError ( e. to_string ( ) ) ) ?;
94
96
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments