mirror of
https://github.com/status-im/web3.js.git
synced 2025-02-23 19:48:13 +00:00
made filter polling async
This commit is contained in:
parent
869bb668e8
commit
9c4080bf26
12
dist/ethereum.js
vendored
12
dist/ethereum.js
vendored
@ -1559,11 +1559,13 @@ var requestManager = function() {
|
||||
|
||||
var poll = function () {
|
||||
polls.forEach(function (data) {
|
||||
var result = send(data.data);
|
||||
if (!(result instanceof Array) || result.length === 0) {
|
||||
return;
|
||||
}
|
||||
data.callback(result);
|
||||
// send async
|
||||
send(data.data, function(result){
|
||||
if (!(result instanceof Array) || result.length === 0) {
|
||||
return;
|
||||
}
|
||||
data.callback(result);
|
||||
});
|
||||
});
|
||||
setTimeout(poll, c.ETH_POLLING_TIMEOUT);
|
||||
};
|
||||
|
4
dist/ethereum.js.map
vendored
4
dist/ethereum.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/ethereum.min.js
vendored
2
dist/ethereum.min.js
vendored
File diff suppressed because one or more lines are too long
@ -112,11 +112,13 @@ var requestManager = function() {
|
||||
|
||||
var poll = function () {
|
||||
polls.forEach(function (data) {
|
||||
var result = send(data.data);
|
||||
if (!(result instanceof Array) || result.length === 0) {
|
||||
return;
|
||||
}
|
||||
data.callback(result);
|
||||
// send async
|
||||
send(data.data, function(result){
|
||||
if (!(result instanceof Array) || result.length === 0) {
|
||||
return;
|
||||
}
|
||||
data.callback(result);
|
||||
});
|
||||
});
|
||||
setTimeout(poll, c.ETH_POLLING_TIMEOUT);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user