Skip to content

Commit 92b18a9

Browse files
committed
Clean-up.
Signed-off-by: Sergey Minaev <[email protected]>
1 parent ebac38c commit 92b18a9

File tree

9 files changed

+10
-17
lines changed

9 files changed

+10
-17
lines changed

cli/src/commands/ledger.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,7 +1246,7 @@ fn timestamp_to_datetime(_time: i64) -> String {
12461246
pub enum ResponseType {
12471247
REQNACK,
12481248
REPLY,
1249-
REJECT,
1249+
REJECT
12501250
}
12511251

12521252
#[derive(Deserialize, Debug)]
@@ -1262,7 +1262,7 @@ pub struct ReplyResult<T> {
12621262
pub data: T,
12631263
#[serde(rename = "seqNo")]
12641264
pub seq_no: u64,
1265-
pub identifier: String,
1265+
pub identifier: String
12661266
}
12671267

12681268
#[cfg(test)]

cli/src/libindy/ledger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ extern {
383383
fn indy_build_cred_def_request(command_handle: i32,
384384
submitter_did: *const c_char,
385385
data: *const c_char,
386-
cb: Option<extern fn(xcommand_handle: i32, err: ErrorCode, request_result_json: *const c_char)>) -> ErrorCode;
386+
cb: Option<extern fn(xcommand_handle: i32, err: ErrorCode, request_json: *const c_char)>) -> ErrorCode;
387387

388388
#[no_mangle]
389389
fn indy_build_get_cred_def_request(command_handle: i32,

libindy/include/indy_ledger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ extern "C" {
476476
const char* request_json)
477477
);
478478

479-
/// Builds a GET_VALIDATOR_INFO request.
479+
/// Builds a GET_VALIDATOR_INFO request.
480480
///
481481
/// #Params
482482
/// command_handle: command handle to map callback to caller context.

libindy/src/services/pool/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ impl PoolWorker {
306306
}
307307
}
308308
}
309-
310309
if poll_items[0].is_readable() {
311310
let cmd = self.cmd_sock.recv_multipart(zmq::DONTWAIT)?;
312311
trace!("cmd {:?}", cmd);

libindy/src/services/pool/transaction_handler.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ impl TransactionHandler {
9191
Ok(raw_msg) => raw_msg["result"].clone(),
9292
Err(err) => return warn!("{:?}", err)
9393
};
94-
9594
let mut msg_result_without_proof: SJsonValue = msg_result.clone();
9695
msg_result_without_proof.as_object_mut().map(|obj| obj.remove("state_proof"));
9796
if msg_result_without_proof["data"].is_object() {

libindy/tests/utils/types.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ pub struct GetSchemaResultData {
9191

9292
#[derive(Debug, Serialize, Deserialize)]
9393
pub struct GetValidatorInfoResult {
94-
/*pub identifier: String,
94+
pub identifier: String,
9595
#[serde(rename = "reqId")]
9696
pub req_id: u64,
9797
#[serde(rename = "seqNo")]
9898
pub seq_no: Option<i32>,
9999
#[serde(rename = "type")]
100-
pub _type: String,
101-
pub data: Option<serde_json::Value>*/
100+
pub type_: String,
101+
pub data: Option<serde_json::Value>
102102
}
103103

104104
#[derive(Debug, Serialize, Deserialize)]

wrappers/ios/libindy-pod/Indy-demo.xcodeproj/xcshareddata/xcschemes/Indy-demo.xcscheme

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@
5656
<Test
5757
Identifier = "AnoncredsHignCases/testAnoncreds">
5858
</Test>
59-
<Test
60-
Identifier = "LedgerGetValidatorInfo/testGetValidatorInfoWorks">
61-
</Test>
6259
<Test
6360
Identifier = "LedgerHignCases/testGetTxnRequestWorks">
6461
</Test>

wrappers/ios/libindy-pod/Indy-demoTests/Test Utils/LedgerUtils.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,17 +209,17 @@ - (NSError *)buildGetSchemaRequestWithSubmitterDid:(NSString *)submitterDid
209209
XCTestExpectation *completionExpectation = [[XCTestExpectation alloc] initWithDescription:@"completion finished"];
210210
__block NSError *err = nil;
211211
__block NSString *result = nil;
212-
212+
213213
[IndyLedger buildGetSchemaRequestWithSubmitterDid:submitterDid
214214
id:id
215215
completion:^(NSError *error, NSString *request) {
216216
err = error;
217217
result = request;
218218
[completionExpectation fulfill];
219219
}];
220-
220+
221221
[self waitForExpectations:@[completionExpectation] timeout:[TestUtils longTimeout]];
222-
222+
223223
if (resultJson) {*resultJson = result;}
224224
return err;
225225
}

wrappers/java/src/test/java/org/hyperledger/indy/sdk/ledger/GetValidatorInfoRequestTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,8 @@
55
import org.hyperledger.indy.sdk.utils.PoolUtils;
66
import org.json.JSONObject;
77
import org.junit.Assert;
8-
import org.junit.Ignore;
98
import org.junit.Test;
109

11-
import static org.junit.Assert.assertNotNull;
1210
import static org.junit.Assert.assertTrue;
1311

1412
public class GetValidatorInfoRequestTest extends IndyIntegrationTestWithPoolAndSingleWallet {

0 commit comments

Comments
 (0)