Use UInt instead of u32 for max request size

Sometimes you just really want to upload a full disk image as media.
This commit is contained in:
Lambda 2025-02-09 13:39:33 +00:00
parent 99924e5779
commit 5616510727
3 changed files with 8 additions and 8 deletions

View file

@ -31,7 +31,7 @@ use ruma::{
serde::Base64,
DeviceId, MilliSecondsSinceUnixEpoch, OwnedEventId, OwnedRoomAliasId,
OwnedRoomId, OwnedServerName, OwnedUserId, RoomAliasId, RoomVersionId,
ServerName, UserId,
ServerName, UInt, UserId,
};
use tokio::sync::{broadcast, Mutex, RwLock, Semaphore};
use tracing::{error, warn, Instrument};
@ -381,7 +381,7 @@ impl Service {
self.config.server_name.as_ref()
}
pub(crate) fn max_request_size(&self) -> u32 {
pub(crate) fn max_request_size(&self) -> UInt {
self.config.max_request_size
}