Skip to content

Commit f923b69

Browse files
author
Hans Larsen
committed
fixup: comments from paul
1 parent 4c16e5c commit f923b69

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

dfx/src/commands/canister/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ where
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
}

dfx/src/lib/api_client.rs

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

0 commit comments

Comments
 (0)