File tree Expand file tree Collapse file tree 9 files changed +24
-24
lines changed Expand file tree Collapse file tree 9 files changed +24
-24
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ impl HttpRequest for RPCBlocksRequestHandler {
91
91
}
92
92
93
93
fn metrics_identifier ( & self ) -> & str {
94
- "/v2/blocks/:hash "
94
+ "/v2/blocks/:block_id "
95
95
}
96
96
97
97
/// Try to decode this request.
Original file line number Diff line number Diff line change @@ -126,6 +126,10 @@ impl HttpRequest for RPCNakamotoBlockRequestHandler {
126
126
Regex :: new ( r#"^/v3/blocks/(?P<block_id>[0-9a-f]{64})$"# ) . unwrap ( )
127
127
}
128
128
129
+ fn metrics_identifier ( & self ) -> & str {
130
+ "/v3/blocks/:block_id"
131
+ }
132
+
129
133
/// Try to decode this request.
130
134
/// There's nothing to load here, so just make sure the request is well-formed.
131
135
fn try_parse_request (
@@ -155,10 +159,6 @@ impl HttpRequest for RPCNakamotoBlockRequestHandler {
155
159
156
160
Ok ( HttpRequestContents :: new ( ) . query_string ( query) )
157
161
}
158
-
159
- fn metrics_identifier ( & self ) -> & str {
160
- "/v3/blocks/:block_id"
161
- }
162
162
}
163
163
164
164
impl RPCRequestHandler for RPCNakamotoBlockRequestHandler {
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ impl HttpRequest for RPCMicroblocksConfirmedRequestHandler {
80
80
}
81
81
82
82
fn metrics_identifier ( & self ) -> & str {
83
- "/v2/microblocks/confirmed/:hash "
83
+ "/v2/microblocks/confirmed/:block_id "
84
84
}
85
85
86
86
/// Try to decode this request.
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ impl HttpRequest for RPCMicroblocksIndexedRequestHandler {
113
113
}
114
114
115
115
fn metrics_identifier ( & self ) -> & str {
116
- "/v2/microblocks/:hash "
116
+ "/v2/microblocks/:microblock_id "
117
117
}
118
118
119
119
/// Try to decode this request.
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ impl HttpRequest for RPCMicroblocksUnconfirmedRequestHandler {
107
107
}
108
108
109
109
fn metrics_identifier ( & self ) -> & str {
110
- "/v2/microblocks/unconfirmed/:hash /:seq"
110
+ "/v2/microblocks/unconfirmed/:block_id /:seq"
111
111
}
112
112
113
113
/// Try to decode this request.
Original file line number Diff line number Diff line change @@ -99,6 +99,10 @@ impl HttpRequest for GetStackersRequestHandler {
99
99
Regex :: new ( r#"^/v2/stacker_set/(?P<cycle_num>[0-9]{1,20})$"# ) . unwrap ( )
100
100
}
101
101
102
+ fn metrics_identifier ( & self ) -> & str {
103
+ "/v2/stacker_set/:cycle_num"
104
+ }
105
+
102
106
/// Try to decode this request.
103
107
/// There's nothing to load here, so just make sure the request is well-formed.
104
108
fn try_parse_request (
@@ -126,10 +130,6 @@ impl HttpRequest for GetStackersRequestHandler {
126
130
127
131
Ok ( HttpRequestContents :: new ( ) . query_string ( query) )
128
132
}
129
-
130
- fn metrics_identifier ( & self ) -> & str {
131
- "/v2/stacker_set/:cycle_num"
132
- }
133
133
}
134
134
135
135
impl RPCRequestHandler for GetStackersRequestHandler {
Original file line number Diff line number Diff line change @@ -155,6 +155,10 @@ impl HttpRequest for RPCNakamotoTenureRequestHandler {
155
155
Regex :: new ( r#"^/v3/tenures/(?P<block_id>[0-9a-f]{64})$"# ) . unwrap ( )
156
156
}
157
157
158
+ fn metrics_identifier ( & self ) -> & str {
159
+ "/v3/tenures/:block_id"
160
+ }
161
+
158
162
/// Try to decode this request.
159
163
/// There's nothing to load here, so just make sure the request is well-formed.
160
164
fn try_parse_request (
@@ -195,10 +199,6 @@ impl HttpRequest for RPCNakamotoTenureRequestHandler {
195
199
196
200
Ok ( req_contents)
197
201
}
198
-
199
- fn metrics_identifier ( & self ) -> & str {
200
- "/v3/tenures/:block_id"
201
- }
202
202
}
203
203
204
204
impl RPCRequestHandler for RPCNakamotoTenureRequestHandler {
Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ impl HttpRequest for RPCNakamotoTenureInfoRequestHandler {
81
81
Regex :: new ( r#"^/v3/tenures/info"# ) . unwrap ( )
82
82
}
83
83
84
+ fn metrics_identifier ( & self ) -> & str {
85
+ "/v3/tenures/info"
86
+ }
87
+
84
88
/// Try to decode this request.
85
89
/// There's nothing to load here, so just make sure the request is well-formed.
86
90
fn try_parse_request (
@@ -97,10 +101,6 @@ impl HttpRequest for RPCNakamotoTenureInfoRequestHandler {
97
101
}
98
102
Ok ( HttpRequestContents :: new ( ) . query_string ( query) )
99
103
}
100
-
101
- fn metrics_identifier ( & self ) -> & str {
102
- "/v3/tenures/info"
103
- }
104
104
}
105
105
106
106
impl RPCRequestHandler for RPCNakamotoTenureInfoRequestHandler {
Original file line number Diff line number Diff line change @@ -376,6 +376,10 @@ impl HttpRequest for RPCBlockProposalRequestHandler {
376
376
Regex :: new ( r#"^/v2/block_proposal$"# ) . unwrap ( )
377
377
}
378
378
379
+ fn metrics_identifier ( & self ) -> & str {
380
+ "/v2/block_proposal"
381
+ }
382
+
379
383
/// Try to decode this request.
380
384
/// There's nothing to load here, so just make sure the request is well-formed.
381
385
fn try_parse_request (
@@ -424,10 +428,6 @@ impl HttpRequest for RPCBlockProposalRequestHandler {
424
428
self . block_proposal = Some ( block_proposal) ;
425
429
Ok ( HttpRequestContents :: new ( ) . query_string ( query) )
426
430
}
427
-
428
- fn metrics_identifier ( & self ) -> & str {
429
- "/v2/block_proposal"
430
- }
431
431
}
432
432
433
433
struct ProposalThreadInfo {
You can’t perform that action at this time.
0 commit comments