Skip to content

Commit 38b9daf

Browse files
committed
Removed based url from api manager impl
1 parent a5b9da8 commit 38b9daf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/com/securenative/ApiManagerImpl.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,16 @@ public ApiManagerImpl(EventManager eventManager, SecureNativeOptions options) th
2323
@Override
2424
public void track(EventOptions eventOptions) {
2525
logger.info("Track event call");
26-
String requestUrl = String.format("%s/%s", this.options.getApiUrl(), ApiRoute.TRACK.getApiRoute());
2726
Event event = new SDKEvent(eventOptions, this.options);
28-
this.eventManager.sendAsync(event,requestUrl, true);
27+
this.eventManager.sendAsync(event, ApiRoute.TRACK.getApiRoute(), true);
2928
}
3029

3130
@Override
3231
public VerifyResult verify(EventOptions eventOptions) {
3332
logger.info("Verify event call");
34-
String requestUrl = String.format("%s/%s", this.options.getApiUrl(), ApiRoute.VERIFY.getApiRoute());
3533
Event event = new SDKEvent(eventOptions, this.options);
3634
try {
37-
return this.eventManager.sendSync(VerifyResult.class , event, requestUrl);
35+
return this.eventManager.sendSync(VerifyResult.class , event, ApiRoute.VERIFY.getApiRoute());
3836
} catch (Exception ex) {
3937
logger.error("Failed to call verify", ex);
4038
return this.options.getFailoverStrategy() == FailoverStrategy.FAIL_OPEN ?

0 commit comments

Comments
 (0)