forked from srxl/akkoma-fe
reduce polling rate
This commit is contained in:
parent
f150d0a105
commit
e55f1c58df
3 changed files with 3 additions and 3 deletions
|
@ -13,7 +13,7 @@ const fetchAndUpdate = ({ store, credentials }) => {
|
|||
const startFetching = ({ credentials, store }) => {
|
||||
const boundFetchAndUpdate = () => fetchAndUpdate({ credentials, store })
|
||||
boundFetchAndUpdate()
|
||||
return promiseInterval(boundFetchAndUpdate, 10000)
|
||||
return promiseInterval(boundFetchAndUpdate, 240000)
|
||||
}
|
||||
|
||||
const followRequestFetcher = {
|
||||
|
|
|
@ -73,7 +73,7 @@ const startFetching = ({ credentials, store }) => {
|
|||
setTimeout(() => store.dispatch('setNotificationsSilence', false), 10000)
|
||||
const boundFetchAndUpdate = () => fetchAndUpdate({ credentials, store })
|
||||
boundFetchAndUpdate()
|
||||
return promiseInterval(boundFetchAndUpdate, 10000)
|
||||
return promiseInterval(boundFetchAndUpdate, 20000)
|
||||
}
|
||||
|
||||
const notificationsFetcher = {
|
||||
|
|
|
@ -83,7 +83,7 @@ const startFetching = ({ timeline = 'friends', credentials, store, userId = fals
|
|||
fetchAndUpdate({ timeline, credentials, store, showImmediately, userId, tag })
|
||||
const boundFetchAndUpdate = () =>
|
||||
fetchAndUpdate({ timeline, credentials, store, userId, tag })
|
||||
return promiseInterval(boundFetchAndUpdate, 10000)
|
||||
return promiseInterval(boundFetchAndUpdate, 20000)
|
||||
}
|
||||
const timelineFetcher = {
|
||||
fetchAndUpdate,
|
||||
|
|
Loading…
Reference in a new issue