File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ pub async fn migrate(
165
165
. expect ( "More than usize::MAX devices — unable to handle this many!" )
166
166
// Oversize the capacity, because the count is only an estimate and
167
167
// we would like to avoid a reallocation
168
- * 3 / 2 ,
168
+ * 9 / 8 ,
169
169
) ;
170
170
171
171
span. pb_set_message ( "migrating access tokens" ) ;
@@ -255,7 +255,7 @@ async fn migrate_users(
255
255
let mut users_stream = pin ! ( synapse. read_users( ) ) ;
256
256
// Oversize the capacity, because the count is only an estimate and
257
257
// we would like to avoid a reallocation
258
- let mut user_localparts_to_uuid = HashMap :: with_capacity ( user_count_hint * 3 / 2 ) ;
258
+ let mut user_localparts_to_uuid = HashMap :: with_capacity ( user_count_hint * 9 / 8 ) ;
259
259
let mut synapse_admins = HashSet :: new ( ) ;
260
260
261
261
while let Some ( user_res) = users_stream. next ( ) . await {
You can’t perform that action at this time.
0 commit comments