@@ -282,18 +282,8 @@ impl AggregatorRuntime {
282
282
} ) ?;
283
283
284
284
self . runner . drop_pending_certificate ( ) . await ?;
285
- let ongoing_snapshot = self
286
- . runner
287
- . create_snapshot_archive ( & state. current_beacon , & state. protocol_message )
288
- . await ?;
289
- let locations = self
290
- . runner
291
- . upload_snapshot_archive ( & ongoing_snapshot)
292
- . await ?;
293
-
294
- let _ = self
295
- . runner
296
- . create_and_save_snapshot ( certificate, & ongoing_snapshot, locations)
285
+ self . runner
286
+ . create_and_save_artifact ( & state. signed_entity_type , & certificate)
297
287
. await ?;
298
288
299
289
Ok ( IdleState {
@@ -356,10 +346,7 @@ impl AggregatorRuntime {
356
346
#[ cfg( test) ]
357
347
mod tests {
358
348
359
- use std:: path:: Path ;
360
-
361
349
use crate :: entities:: OpenMessage ;
362
- use crate :: snapshotter:: OngoingSnapshot ;
363
350
364
351
use super :: super :: runner:: MockAggregatorRunner ;
365
352
use super :: * ;
@@ -684,22 +671,9 @@ mod tests {
684
671
. once ( )
685
672
. returning ( || Ok ( Some ( fake_data:: certificate_pending ( ) ) ) ) ;
686
673
runner
687
- . expect_create_snapshot_archive ( )
688
- . once ( )
689
- . returning ( |_, _| {
690
- Ok ( OngoingSnapshot :: new (
691
- Path :: new ( "/tmp/archive.zip" ) . to_path_buf ( ) ,
692
- 1234 ,
693
- ) )
694
- } ) ;
695
- runner
696
- . expect_upload_snapshot_archive ( )
697
- . once ( )
698
- . returning ( |_path| Ok ( vec ! [ "locA" . to_string( ) , "locB" . to_string( ) ] ) ) ;
699
- runner
700
- . expect_create_and_save_snapshot ( )
674
+ . expect_create_and_save_artifact ( )
701
675
. once ( )
702
- . returning ( |_, _, _ | Ok ( fake_data :: snapshots ( 1 ) [ 0 ] . clone ( ) ) ) ;
676
+ . returning ( |_, _| Ok ( ( ) ) ) ;
703
677
704
678
let state = SigningState {
705
679
current_beacon : fake_data:: beacon ( ) ,
0 commit comments