Skip to content

Commit f68f7fd

Browse files
committed
code refactor
1 parent ebae19a commit f68f7fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tx-pool/src/component/orphan.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ impl OrphanPool {
154154
self.limit_size()
155155
}
156156

157-
pub fn find_by_previous(&self, tx: &TransactionView) -> Vec<ProposalShortId> {
157+
pub fn find_by_previous(&self, tx: &TransactionView) -> Vec<&ProposalShortId> {
158158
tx.output_pts()
159159
.iter()
160-
.filter_map(|out_point| self.by_out_point.get(out_point).cloned())
160+
.filter_map(|out_point| self.by_out_point.get(out_point))
161161
.flatten()
162162
.collect::<Vec<_>>()
163163
}

0 commit comments

Comments
 (0)