Skip to content

Commit

Permalink
Merge pull request #1028 from akto-api-security/hotfix/remove_dp_again
Browse files Browse the repository at this point in the history
disable dependency graph
  • Loading branch information
avneesh-akto authored Apr 18, 2024
2 parents 9363de5 + 92e83ed commit e0d9f5d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,17 +204,17 @@ public void syncFunction(List<HttpResponseParams> responseParams, boolean syncIm
apiCatalogSync.computeDelta(aggregator, false, apiCollectionId);
}

for (HttpResponseParams responseParam: filteredResponseParams) {
dependencyAnalyser.analyse(responseParam.getOrig(), responseParam.requestParams.getApiCollectionId());
}
// for (HttpResponseParams responseParam: filteredResponseParams) {
// dependencyAnalyser.analyse(responseParam.getOrig(), responseParam.requestParams.getApiCollectionId());
// }

this.sync_count += filteredResponseParams.size();
int syncThresh = numberOfSyncs < 10 ? 10000 : sync_threshold_count;
if (syncImmediately || this.sync_count >= syncThresh || (Context.now() - this.last_synced) > this.sync_threshold_time || isHarOrPcap) {
numberOfSyncs++;
apiCatalogSync.syncWithDB(syncImmediately, fetchAllSTI);
dependencyAnalyser.dbState = apiCatalogSync.dbState;
dependencyAnalyser.syncWithDb();
// dependencyAnalyser.dbState = apiCatalogSync.dbState;
// dependencyAnalyser.syncWithDb();
syncTrafficMetricsWithDB();
this.last_synced = Context.now();
this.sync_count = 0;
Expand Down
Loading

0 comments on commit e0d9f5d

Please sign in to comment.