File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 6262 reject_code,
6363 reject_message,
6464 } ) => Err ( DfxError :: ClientError ( reject_code, reject_message) ) ,
65- /// TODO: remove this when moving to ic_http_api.
65+ // TODO: remove this when moving to ic_http_api.
6666 Ok ( ReadResponse :: Unknown ) => Err ( DfxError :: Unknown ( "Unknown response" . to_owned ( ) ) ) ,
6767 Err ( x) => Err ( x) ,
6868 }
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ pub fn call(
230230 canister_id : CanisterId ,
231231 method_name : String ,
232232 arg : Option < Blob > ,
233- ) -> impl Future < Item = Option < Blob > , Error = DfxError > {
233+ ) -> impl Future < Item = ( ) , Error = DfxError > {
234234 submit (
235235 client,
236236 SubmitRequest :: Call {
@@ -244,10 +244,7 @@ pub fn call(
244244 result (
245245 response
246246 . error_for_status ( )
247- . map ( |response| {
248- eprintln ! ( "{:?}" , response) ;
249- None
250- } )
247+ . map ( |_| ( ) )
251248 . map_err ( DfxError :: from) ,
252249 )
253250 } )
You can’t perform that action at this time.
0 commit comments