increase indexer timeout
This commit is contained in:
parent
c58d859d07
commit
af3451b662
|
@ -32,7 +32,7 @@ class DuniterIndexer with ChangeNotifier {
|
||||||
while (true) {
|
while (true) {
|
||||||
await Future.delayed(const Duration(seconds: 30));
|
await Future.delayed(const Duration(seconds: 30));
|
||||||
final _client = HttpClient();
|
final _client = HttpClient();
|
||||||
_client.connectionTimeout = const Duration(milliseconds: 1000);
|
_client.connectionTimeout = const Duration(milliseconds: 4000);
|
||||||
try {
|
try {
|
||||||
final request =
|
final request =
|
||||||
await _client.postUrl(Uri.parse('$oldEndpoint/v1/graphql'));
|
await _client.postUrl(Uri.parse('$oldEndpoint/v1/graphql'));
|
||||||
|
@ -62,7 +62,7 @@ class DuniterIndexer with ChangeNotifier {
|
||||||
int _statusCode = 0;
|
int _statusCode = 0;
|
||||||
|
|
||||||
final _client = HttpClient();
|
final _client = HttpClient();
|
||||||
_client.connectionTimeout = const Duration(milliseconds: 1000);
|
_client.connectionTimeout = const Duration(milliseconds: 3000);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
int listLenght = _listEndpoints.length;
|
int listLenght = _listEndpoints.length;
|
||||||
|
|
Loading…
Reference in New Issue