Skip to content

Commit

Permalink
Merge pull request #1707 from thisaltennakoon/Fix-issues-while-deploy…
Browse files Browse the repository at this point in the history
…ing-APIs-during-high-traffic

Fix issues while deploying APIs during high traffic
  • Loading branch information
tharikaGitHub authored Mar 27, 2024
2 parents d8c08b0 + 174fee5 commit d1405d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ public boolean isEndpointExist(String endpointName) throws EndpointAdminExceptio
lock.lock();
assertNameNotEmpty(endpointName);
log.debug("Check Endpoint Existence : " + endpointName + " in the configuration");
return getSynapseConfiguration().getLocalRegistry().containsKey(endpointName.trim());
return getSynapseConfiguration().getLocalRegistry().get(endpointName.trim()) instanceof Endpoint;
} catch (SynapseException syne) {
handleFault("Unable to check existence ", syne);
} finally {
Expand Down

0 comments on commit d1405d4

Please sign in to comment.