Skip to content

Commit d06f7c2

Browse files
authored
Handle device syncs for many devices more quickly (#4815)
2 parents 0b7cac4 + 44c24e3 commit d06f7c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/tasks/src/matrix.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ impl RunnableJob for SyncDevicesJob {
192192
let mut devices = HashSet::new();
193193

194194
// Cycle through all the compat sessions of the user, and grab the devices
195-
let mut cursor = Pagination::first(100);
195+
let mut cursor = Pagination::first(5000);
196196
loop {
197197
let page = repo
198198
.compat_session()
@@ -216,7 +216,7 @@ impl RunnableJob for SyncDevicesJob {
216216
}
217217

218218
// Cycle though all the oauth2 sessions of the user, and grab the devices
219-
let mut cursor = Pagination::first(100);
219+
let mut cursor = Pagination::first(5000);
220220
loop {
221221
let page = repo
222222
.oauth2_session()

0 commit comments

Comments
 (0)