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 @@ -287,7 +287,7 @@ impl MagicValidator {
287287 let task_scheduler = TaskSchedulerService :: new (
288288 & task_scheduler_db_path,
289289 & config. task_scheduler ,
290- RpcClient :: new ( config. listen . http ( ) ) ,
290+ config. listen . http ( ) ,
291291 dispatch
292292 . tasks_service
293293 . 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