Skip to content

Commit 1bb3bb5

Browse files
committed
feat: hide internal detail
1 parent 2deeac3 commit 1bb3bb5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

magicblock-api/src/magic_validator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()

magicblock-task-scheduler/src/service.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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(),

0 commit comments

Comments
 (0)