Skip to content

Commit

Permalink
perf: Parallelize GTTA API again
Browse files Browse the repository at this point in the history
DO NOT MERGE

With new network refacotring in v1.8.0, the queue problem seems resolve.
So we roll back implementaion of parallel gTTA again.
  • Loading branch information
Yu Wei Wu authored and marktwtn committed Aug 22, 2019
1 parent 9029c11 commit 7448e01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/iota/iri/service/API.java
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ private static void incEllapsedTimeGetTxToApprove(long ellapsedTime) {
* @return {@link com.iota.iri.service.dto.GetTransactionsToApproveResponse}
**/
@Document(name="getTransactionsToApprove")
private synchronized AbstractResponse getTransactionsToApproveStatement(int depth, Optional<Hash> reference) {
private AbstractResponse getTransactionsToApproveStatement(int depth, Optional<Hash> reference) {
if (depth < 0 || depth > configuration.getMaxDepth()) {
return ErrorResponse.create("Invalid depth input");
}
Expand Down

0 comments on commit 7448e01

Please sign in to comment.