mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
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:
parent
99924e5779
commit
5616510727
3 changed files with 8 additions and 8 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue