@@ -233,26 +233,14 @@ impl DoubleEcho {
233
233
validator_id : ValidatorId ,
234
234
signature : Signature ,
235
235
) {
236
- match self . validator_store . get_certificate ( & certificate_id) {
237
- Err ( storage_error) => error ! (
238
- "Unable to get the Certificate {} due to {:?}" ,
239
- & certificate_id, storage_error
240
- ) ,
241
- Ok ( Some ( _) ) => debug ! (
242
- "Certificate {} already delivered, ignoring echo" ,
243
- & certificate_id
244
- ) ,
245
- Ok ( None ) => {
246
- let _ = self
247
- . task_manager_message_sender
248
- . send ( DoubleEchoCommand :: Echo {
249
- validator_id,
250
- certificate_id,
251
- signature,
252
- } )
253
- . await ;
254
- }
255
- }
236
+ let _ = self
237
+ . task_manager_message_sender
238
+ . send ( DoubleEchoCommand :: Echo {
239
+ validator_id,
240
+ certificate_id,
241
+ signature,
242
+ } )
243
+ . await ;
256
244
}
257
245
258
246
pub async fn handle_ready (
@@ -261,25 +249,13 @@ impl DoubleEcho {
261
249
validator_id : ValidatorId ,
262
250
signature : Signature ,
263
251
) {
264
- match self . validator_store . get_certificate ( & certificate_id) {
265
- Err ( storage_error) => error ! (
266
- "Unable to get the Certificate {} due to {:?}" ,
267
- & certificate_id, storage_error
268
- ) ,
269
- Ok ( Some ( _) ) => debug ! (
270
- "Certificate {} already delivered, ignoring echo" ,
271
- & certificate_id
272
- ) ,
273
- Ok ( None ) => {
274
- let _ = self
275
- . task_manager_message_sender
276
- . send ( DoubleEchoCommand :: Ready {
277
- validator_id,
278
- certificate_id,
279
- signature,
280
- } )
281
- . await ;
282
- }
283
- }
252
+ let _ = self
253
+ . task_manager_message_sender
254
+ . send ( DoubleEchoCommand :: Ready {
255
+ validator_id,
256
+ certificate_id,
257
+ signature,
258
+ } )
259
+ . await ;
284
260
}
285
261
}
0 commit comments