Skip to content

Commit

Permalink
fixup: comments from paul
Browse files Browse the repository at this point in the history
  • Loading branch information
Hans Larsen committed Sep 24, 2019
1 parent 4c16e5c commit f923b69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dfx/src/commands/canister/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ where
reject_code,
reject_message,
}) => Err(DfxError::ClientError(reject_code, reject_message)),
/// TODO: remove this when moving to ic_http_api.
// TODO: remove this when moving to ic_http_api.
Ok(ReadResponse::Unknown) => Err(DfxError::Unknown("Unknown response".to_owned())),
Err(x) => Err(x),
}
Expand Down
7 changes: 2 additions & 5 deletions dfx/src/lib/api_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ pub fn call(
canister_id: CanisterId,
method_name: String,
arg: Option<Blob>,
) -> impl Future<Item = Option<Blob>, Error = DfxError> {
) -> impl Future<Item = (), Error = DfxError> {
submit(
client,
SubmitRequest::Call {
Expand All @@ -244,10 +244,7 @@ pub fn call(
result(
response
.error_for_status()
.map(|response| {
eprintln!("{:?}", response);
None
})
.map(|_| ())
.map_err(DfxError::from),
)
})
Expand Down

0 comments on commit f923b69

Please sign in to comment.