File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
archive/archive_node_tests Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ type t = Mina_automation_fixture.Archive.after_bootstrap
88
99let test_case (test_data : t ) =
1010 let open Deferred.Let_syntax in
11- let daemon = Daemon. default in
11+ let daemon = Daemon. default () in
1212 let archive_uri = test_data.archive.config.postgres_uri in
1313 let temp_dir = test_data.temp_dir in
1414 let % bind precomputed_blocks =
@@ -25,9 +25,9 @@ let test_case (test_data : t) =
2525
2626 Archive.Process. start_logging test_data.archive ~log_file ;
2727 let % bind () =
28- Daemon. archive_blocks_from_files daemon
29- ~archive_address: test_data.archive.config.server_port
30- ~format: Archive_blocks. Precomputed precomputed_blocks
28+ Daemon. archive_blocks_from_files daemon.executor
29+ ~archive_address: test_data.archive.config.server_port ~format: `Precomputed
30+ precomputed_blocks
3131 in
3232
3333 let % bind () =
Original file line number Diff line number Diff line change @@ -188,13 +188,13 @@ let archive_blocks t ~archive_address ~format blocks =
188188 ]
189189 @ blocks )
190190
191+ type t = { config : Config .t ; executor : Executor .t }
192+
191193let archive_blocks_from_files t ~archive_address ~format ?(sleep = 5 ) blocks =
192194 Deferred.List. iter blocks ~f: (fun block ->
193195 let % bind _ = archive_blocks t ~archive_address ~format [ block ] () in
194196 after (Time.Span. of_sec (Float. of_int sleep)) )
195197
196- type t = { config : Config .t ; executor : Executor .t }
197-
198198let of_config config = { config; executor = Executor. AutoDetect }
199199
200200let default () = { config = Config. default () ; executor = Executor. AutoDetect }
You can’t perform that action at this time.
0 commit comments