Skip to content

Commit 24735b9

Browse files
committed
remove unused function
1 parent 3eb5929 commit 24735b9

File tree

2 files changed

+0
-40
lines changed

2 files changed

+0
-40
lines changed

src/api/client.rs

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -89,45 +89,6 @@ fn print_verification_status(
8989
println!("Repo URL: {}", status_response.repo_url.as_str());
9090
}
9191

92-
// Send a job to the remote server
93-
#[allow(clippy::too_many_arguments)]
94-
pub async fn send_job_to_remote(
95-
repo_url: &str,
96-
commit_hash: &Option<String>,
97-
program_id: &Pubkey,
98-
library_name: &Option<String>,
99-
bpf_flag: bool,
100-
relative_mount_path: String,
101-
base_image: Option<String>,
102-
cargo_args: Vec<String>,
103-
) -> anyhow::Result<()> {
104-
let client = Client::builder()
105-
.timeout(Duration::from_secs(18000))
106-
.build()?;
107-
108-
// Send the POST request
109-
let response = client
110-
.post(format!("{}/verify", REMOTE_SERVER_URL))
111-
.json(&json!({
112-
"repository": repo_url,
113-
"commit_hash": commit_hash,
114-
"program_id": program_id.to_string(),
115-
"lib_name": library_name,
116-
"bpf_flag": bpf_flag,
117-
"mount_path": if relative_mount_path.is_empty() {
118-
None
119-
} else {
120-
Some(relative_mount_path)
121-
},
122-
"base_image": base_image,
123-
"cargo_args": cargo_args,
124-
}))
125-
.send()
126-
.await?;
127-
128-
handle_submission_response(&client, response, program_id).await
129-
}
130-
13192
pub async fn send_job_with_uploader_to_remote(
13293
connection: &RpcClient,
13394
program_id: &Pubkey,

src/api/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@ mod solana;
44

55
pub use client::get_remote_job;
66
pub use client::get_remote_status;
7-
pub use client::send_job_to_remote;
87
pub use client::send_job_with_uploader_to_remote;
98
pub use solana::get_last_deployed_slot;

0 commit comments

Comments
 (0)