@@ -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-
13192pub async fn send_job_with_uploader_to_remote (
13293 connection : & RpcClient ,
13394 program_id : & Pubkey ,
0 commit comments