reduce polling rate

This commit is contained in:
sadposter 2021-12-05 15:02:10 +00:00
parent f150d0a105
commit e55f1c58df
3 changed files with 3 additions and 3 deletions

View file

@ -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 = {

View file

@ -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 = {

View file

@ -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,