mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Make factory upload limit configurable and increase default to mitigate #105
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user