Skip to content

Commit c52c331

Browse files
authored
Merge branch 'master' into feature/deprecation
2 parents b47db95 + fc02be4 commit c52c331

File tree

6 files changed

+2113
-218
lines changed

6 files changed

+2113
-218
lines changed

libindy/src/errors/common.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ impl fmt::Display for CommonError {
5454
CommonError::InvalidParam2(ref description) => write!(f, "Invalid param 2: {}", description),
5555
CommonError::InvalidParam3(ref description) => write!(f, "Invalid param 3: {}", description),
5656
CommonError::InvalidParam4(ref description) => write!(f, "Invalid param 4: {}", description),
57-
CommonError::InvalidParam5(ref description) => write!(f, "Invalid param 4: {}", description),
58-
CommonError::InvalidParam6(ref description) => write!(f, "Invalid param 4: {}", description),
59-
CommonError::InvalidParam7(ref description) => write!(f, "Invalid param 4: {}", description),
60-
CommonError::InvalidParam8(ref description) => write!(f, "Invalid param 4: {}", description),
61-
CommonError::InvalidParam9(ref description) => write!(f, "Invalid param 4: {}", description),
57+
CommonError::InvalidParam5(ref description) => write!(f, "Invalid param 5: {}", description),
58+
CommonError::InvalidParam6(ref description) => write!(f, "Invalid param 6: {}", description),
59+
CommonError::InvalidParam7(ref description) => write!(f, "Invalid param 7: {}", description),
60+
CommonError::InvalidParam8(ref description) => write!(f, "Invalid param 8: {}", description),
61+
CommonError::InvalidParam9(ref description) => write!(f, "Invalid param 9: {}", description),
6262
CommonError::InvalidState(ref description) => write!(f, "Invalid library state: {}", description),
6363
CommonError::InvalidStructure(ref description) => write!(f, "Invalid structure: {}", description),
6464
CommonError::IOError(ref err) => err.fmt(f)

libindy/src/services/pool/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ impl PoolWorker {
164164

165165
let gen_tnxs = PoolWorker::_build_node_state(&merkle_tree)?;
166166

167-
for (_, gen_txn) in &gen_tnxs {
167+
for gen_txn in gen_tnxs.values() {
168168
let mut rn: RemoteNode = match RemoteNode::new(&gen_txn) {
169169
Ok(rn) => rn,
170170
Err(err) => {

libindy/src/services/pool/transaction_handler.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ impl TransactionHandler {
262262
"Can't flash all transaction requests with common success status".to_string())));
263263
}
264264
Err(_) => {
265-
for (_, pending_cmd) in &mut self.pending_commands {
265+
for pending_cmd in self.pending_commands.values_mut() {
266266
pending_cmd.terminate_parent_cmds(false)?
267267
}
268268
Ok(())
@@ -652,7 +652,7 @@ impl TransactionHandler {
652652
self.pending_commands.remove(&cmd);
653653
}
654654

655-
for (_, pc) in &mut self.pending_commands {
655+
for pc in self.pending_commands.values_mut() {
656656
let is_timeout = pc.resendable_request.as_ref()
657657
.and_then(|resend| resend.next_try_send_time)
658658
.map(|next_try_send_time| next_try_send_time <= time::now_utc())

0 commit comments

Comments
 (0)