perf(home): 调整货架商品同步到服务器的时间间隔
- 将定时任务的执行间隔从5秒调整为2分钟 - 保持初始延迟时间不变(10秒) - 优化服务器同步频率以减少资源消耗
This commit is contained in:
@@ -404,7 +404,7 @@ class HomeV2Activity : BaseActivity() {
|
||||
private fun saveGoodsTask() {
|
||||
saveTaskJob =
|
||||
// taskExecutor.startIntervalTaskWithInitialDelay(1 * 60 * 1000L, 5 * 60 * 1000L) {
|
||||
taskExecutor.startIntervalTaskWithInitialDelay(10 * 1000L, 5 * 1000L) {
|
||||
taskExecutor.startIntervalTaskWithInitialDelay(10 * 1000L, 2 * 60 * 1000L) {
|
||||
syncShelfGoodsToServer()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user