tweak debounce time
This commit is contained in:
parent
a4f4769989
commit
fab6e66439
1 changed files with 2 additions and 8 deletions
|
|
@ -921,20 +921,14 @@ class Mediator {
|
|||
|
||||
await throwOnInvalidToken(token)
|
||||
|
||||
await API.Events.onSimplerSentRequests(
|
||||
API.Events.onSimplerSentRequests(
|
||||
debounce(sentRequests => {
|
||||
if (Config.SHOW_LOG) {
|
||||
console.log('---sentRequests---')
|
||||
console.log(sentRequests)
|
||||
console.log('-----------------------')
|
||||
}
|
||||
|
||||
this.socket.emit(Event.ON_SENT_REQUESTS, {
|
||||
msg: sentRequests,
|
||||
ok: true,
|
||||
origBody: body
|
||||
})
|
||||
}, 200)
|
||||
}, 1000)
|
||||
)
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue