File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
magicblock-task-scheduler/src Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ impl MagicValidator {
285285 let task_scheduler = TaskSchedulerService :: new (
286286 & task_scheduler_db_path,
287287 & config. task_scheduler ,
288- RpcClient :: new ( config. listen . http ( ) ) ,
288+ config. listen . http ( ) ,
289289 dispatch
290290 . tasks_service
291291 . take ( )
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ impl TaskSchedulerService {
6464 pub fn new (
6565 path : & Path ,
6666 config : & TaskSchedulerConfig ,
67- rpc_client : RpcClient ,
67+ rpc_url : String ,
6868 scheduled_tasks : ScheduledTasksRx ,
6969 block : LatestBlock ,
7070 token : CancellationToken ,
@@ -86,7 +86,7 @@ impl TaskSchedulerService {
8686 let db = SchedulerDatabase :: new ( path) ?;
8787 Ok ( Self {
8888 db,
89- rpc_client,
89+ rpc_client : RpcClient :: new ( rpc_url ) ,
9090 scheduled_tasks,
9191 block,
9292 task_queue : DelayQueue :: new ( ) ,
You can’t perform that action at this time.
0 commit comments