Skip to content

Commit fa83476

Browse files
Merge pull request #26 from ostdotcom/pre_release
merging pre_release into develop.
2 parents 52da8dd + 13ba027 commit fa83476

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ notifications:
1414
sudo: false
1515
branches:
1616
only:
17-
- master
1817
- develop
1918
- /^release-.*/
2019
script: mvn clean verify

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ sdkConfig.put("apiSecret","[YOUR_API_SECRET]");
8282
HashMap <String,Object> nestedparam = new HashMap<String,Object>();
8383
// This is the timeout in seconds for which the socket connection will remain open
8484
// The value of timeout will always be of type long
85-
nestedparam.put("timeout", (long) 15);
85+
nestedparam.put("timeout", (long) 60);
8686
sdkConfig.put("config", nestedparam);
8787

8888
OSTSDK ostObj = new OSTSDK(sdkConfig);
@@ -414,12 +414,12 @@ arrayListAmount.add(amount);
414414
Gson gsonObj = new Gson();
415415
String tokenHolderSender = "0xa9632350057c2226c5a10418b1c3bc9acdf7e2ee";
416416
String payCurrencyCode = "USD";
417-
String ostToUsdInWei = "23757000000000000";
417+
String ostToUsd = "23757000000000000";
418418
nestedarraylist.add(tokenHolderSender);
419419
nestedarraylist.add(arrayListForUser2TokenHolderAddress);
420420
nestedarraylist.add(arrayListAmount);
421421
nestedarraylist.add(payCurrencyCode);
422-
nestedarraylist.add(ostToUsdInWei);
422+
nestedarraylist.add(ostToUsd);
423423
nestedparams.put("parameters", nestedarraylist);
424424
String jsonStr = gsonObj.toJson(nestedparams);
425425
params.put("raw_calldata", jsonStr);

src/main/java/com/ost/lib/OSTRequestClient.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ public OSTRequestClient( Map<String,Object> params) {
7171
Object apiSecret = params.get("apiSecret");
7272
Object apiEndpoint = params.get("apiEndpoint");
7373

74-
//default timeout is 10 seconds for socket connection
75-
long timeout = (long) 10;
74+
//default timeout is 60 seconds for socket connection
75+
long timeout = (long) 60;
7676
if(params.containsKey("config"))
7777
{
7878
HashMap<String, Object> config = (HashMap<String, Object>) params.get("config");
@@ -123,7 +123,7 @@ public OSTRequestClient( Map<String,Object> params) {
123123

124124
private static String GET_REQUEST = "GET";
125125
private static String POST_REQUEST = "POST";
126-
private static String SocketTimeoutExceptionString = "{'success':'false','err':{'code':'GATEWAY_TIMEOUT','internal_id':'TIMEOUT_ERROR','msg':'','error_data':[]}}";
126+
private static String SocketTimeoutExceptionString = "{'success':'false','err':{'code':'GATEWAY_TIMEOUT','internal_id':'SDK(GATEWAY_TIMEOUT)','msg':'','error_data':[]}}";
127127

128128

129129
public JsonObject get(String resource, Map<String, Object> queryParams) throws IOException {

0 commit comments

Comments
 (0)