Skip to content

Commit

Permalink
Quick fix for circular dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
Akayeshmantha committed Apr 8, 2020
1 parent 415d5ec commit 9420259
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ public class TrustCalculationService {
@Autowired
private TrustProfileService trustProfileService;

@Autowired
private ProfileCompletnessCollector completnessCollector;
// @Autowired
// private ProfileCompletnessCollector completnessCollector;


@Value("${app.trust.trustScore.syncWithCatalogService}")
Expand Down Expand Up @@ -118,11 +118,11 @@ public void createAllAndScoreBatch() {
List<IdentifierNameTuple> tuples = JsonSerializationUtility.deserializeContent(
response.body().asInputStream(), new TypeReference<List<IdentifierNameTuple>>() {
});
for (IdentifierNameTuple t : tuples) {
completnessCollector.fetchProfileCompletnessValues(t.getCompanyID(), true);
trustScoreSync.syncWithCatalogService(t.getCompanyID());

}
// for (IdentifierNameTuple t : tuples) {
// completnessCollector.fetchProfileCompletnessValues(t.getCompanyID(), true);
// trustScoreSync.syncWithCatalogService(t.getCompanyID());
//
// }
} else {
log.info("GetAllPartyIds request to identity service failed due: "
+ new feign.codec.StringDecoder().decode(response, String.class));
Expand Down

0 comments on commit 9420259

Please sign in to comment.