Rename ByteSize.to to ByteSize.into
This method could clash the the `a to b` operator.
This commit is contained in:
parent
a7eb46ed45
commit
6441153dba
3 changed files with 28 additions and 22 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue