Rename ByteSize.to to ByteSize.into

This method could clash the the `a to b` operator.
This commit is contained in:
Jorge Martín 2025-12-16 16:50:11 +01:00 committed by Jorge Martin Espinosa
parent a7eb46ed45
commit 6441153dba
3 changed files with 28 additions and 22 deletions

View file

@ -81,9 +81,9 @@ class RustMatrixClientFactory(
client.setMediaRetentionPolicy(
MediaRetentionPolicy(
// Make this 500MB instead of 400MB
maxCacheSize = 500.megaBytes.to(ByteUnit.BYTES).toULong(),
maxCacheSize = 500.megaBytes.into(ByteUnit.BYTES).toULong(),
// This is the default value, but let's make it explicit
maxFileSize = 20.megaBytes.to(ByteUnit.BYTES).toULong(),
maxFileSize = 20.megaBytes.into(ByteUnit.BYTES).toULong(),
// Use 30 days instead of 60
lastAccessExpiry = 30.days.toJavaDuration(),
// This is the default value, but let's make it explicit