瀏覽代碼

modify default timeout->5000ms

melon.yin 3 年之前
父節點
當前提交
7c41271925
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/http_pool.dart

+ 1 - 1
lib/http_pool.dart

@@ -59,7 +59,7 @@ class _JsonRpcHttpPool {
       //  - text/plain
       final _client = FHttp(FHttpBaseOptions(
         baseUrl: baseUrl,
-        timeout: timeout ?? 3 * 1000,
+        timeout: timeout ?? 5 * 1000,
         headers: headers,
         contentType: dio.Headers.textPlainContentType,
         responseType: FHttpResponseType.json,