tweak debounce time

This commit is contained in:
Daniel Lugo 2020-02-04 18:26:07 -04:00
parent a4f4769989
commit fab6e66439

View file

@ -921,20 +921,14 @@ class Mediator {
await throwOnInvalidToken(token) await throwOnInvalidToken(token)
await API.Events.onSimplerSentRequests( API.Events.onSimplerSentRequests(
debounce(sentRequests => { debounce(sentRequests => {
if (Config.SHOW_LOG) {
console.log('---sentRequests---')
console.log(sentRequests)
console.log('-----------------------')
}
this.socket.emit(Event.ON_SENT_REQUESTS, { this.socket.emit(Event.ON_SENT_REQUESTS, {
msg: sentRequests, msg: sentRequests,
ok: true, ok: true,
origBody: body origBody: body
}) })
}, 200) }, 1000)
) )
} catch (err) { } catch (err) {
console.log(err) console.log(err)