File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ macro_rules! metrics {
2020 $( #[ $meta] ) *
2121 $metric_vis $metric: $ty,
2222 ) *
23- pub ( crate ) recent_releases : RecentReleases ,
23+ pub ( crate ) recently_accessed_releases : RecentlyAccessedReleases ,
2424 }
2525 impl $name {
2626 $vis fn new( ) -> Result <Self , prometheus:: Error > {
@@ -37,7 +37,7 @@ macro_rules! metrics {
3737 ) *
3838 Ok ( Self {
3939 registry,
40- recent_releases : RecentReleases :: new( ) ,
40+ recently_accessed_releases : RecentlyAccessedReleases :: new( ) ,
4141 $(
4242 $( #[ $meta] ) *
4343 $metric,
Original file line number Diff line number Diff line change @@ -78,13 +78,13 @@ metrics! {
7878}
7979
8080#[ derive( Debug , Default ) ]
81- pub ( crate ) struct RecentReleases {
81+ pub ( crate ) struct RecentlyAccessedReleases {
8282 krates : DashMap < String , Instant > ,
8383 versions : DashMap < String , Instant > ,
8484 platforms : DashMap < String , Instant > ,
8585}
8686
87- impl RecentReleases {
87+ impl RecentlyAccessedReleases {
8888 pub ( crate ) fn new ( ) -> Self {
8989 Self :: default ( )
9090 }
@@ -151,7 +151,7 @@ impl Metrics {
151151 . set ( queue. prioritized_count ( ) ? as i64 ) ;
152152 self . failed_crates_count . set ( queue. failed_count ( ) ? as i64 ) ;
153153
154- self . recent_releases . gather ( self ) ;
154+ self . recently_accessed_releases . gather ( self ) ;
155155 self . gather_system_performance ( ) ;
156156 Ok ( self . registry . gather ( ) )
157157 }
Original file line number Diff line number Diff line change @@ -423,7 +423,9 @@ pub fn rustdoc_html_server_handler(req: &mut Request) -> IronResult<Response> {
423423 ( target, inner_path. join ( "/" ) )
424424 } ;
425425
426- metrics. recent_releases . record ( & name, & version, target) ;
426+ metrics
427+ . recently_accessed_releases
428+ . record ( & name, & version, target) ;
427429
428430 let target = if target == "" {
429431 String :: new ( )
You can’t perform that action at this time.
0 commit comments