Make factory upload limit configurable and increase default to mitigate #105

This commit is contained in:
NG (Graham) committed 2026-04-08 21:06:06 -04:00
1 parent 766604078f
commit c82c11fc1c
7 files changed
+28 -8

No files matched your search

+5
View File
@@ -21,6 +21,7 @@ pub trait ConfigProvider<C: Clone> {
fn server_config(&self) -> ServerConfig;
fn garage_upgrades(&self) -> GarageUpgrades;
async fn factory(&self, builtin_factory_provider: &(dyn (Fn() -> oj_rc_database::FactoryDatabase) + Sync)) -> Result<crate::factory::Factory, Box<dyn std::error::Error + 'static>>;
fn factory_config(&self) -> FactoryConfig;
fn cubes(&self) -> &'_ indexmap::IndexMap<String, crate::persist::Cube>;
fn chat_system_config(&self) -> ChatSystemConfig;
fn gamemode_events(&self) -> GameEventSequence;
@@ -143,6 +144,10 @@ impl GarageUpgrades {
}
}
pub struct FactoryConfig {
pub upload_limit: i32,
}
#[derive(Clone, Debug)]
pub struct ChatSystemConfig {
pub command_channel: String,