OSDN Git Service

change api timeout
authorxuhongxin <xuhongxin@luojilab.com>
Sat, 27 Oct 2018 04:28:59 +0000 (12:28 +0800)
committerxuhongxin <xuhongxin@luojilab.com>
Sat, 27 Oct 2018 04:28:59 +0000 (12:28 +0800)
package.json
src/http.js

index 5db49f8..1f6139d 100644 (file)
@@ -1,6 +1,6 @@
 {
   "name": "bytom-js-sdk",
-  "version": "1.3.4",
+  "version": "1.3.5",
   "description": "Bytom JS SDK",
   "main": "src/index.js",
   "keywords": [
index 73ce929..1884145 100644 (file)
@@ -12,7 +12,7 @@ export function serverHttp(host) {
                 Accept: 'application/json',
             },
             data: body,
-            timeout: 2000
+            timeout: 10000
         };
 
         //return Promise