SEARCH-438

- code refactoring
This commit is contained in:
Keerthi Niranjan
2017-11-20 12:20:19 +05:30
parent 1cbc443024
commit 68742808cf
2 changed files with 16 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ let makeBoundTimedCollector = function(isIndexing, timeout, callback) {
if (!timer){
timer = setTimeout(function(){
if (!isIndexing) {
flush(getQueue())
flush(getQueue());
}
}, timeout);
}
@@ -28,11 +28,11 @@ let makeBoundTimedCollector = function(isIndexing, timeout, callback) {
}
function getQueue(){
return messagesData
return messagesData;
}
function resetQueue(){
messagesData = []
messagesData = [];
}
};