(quiet: bool)
| 285 | |
| 286 | impl SharedContext { |
| 287 | fn new(quiet: bool) -> Self { |
| 288 | let mut logger_builder = guild_logger::GuildLoggerBuilder::new(); |
| 289 | if !quiet { |
| 290 | logger_builder = logger_builder.add_backend(Arc::new(StderrLogBackend)); |
| 291 | } |
| 292 | |
| 293 | Self { |
| 294 | guild_logger: logger_builder.run().with_guild(GUILD_ID), |
| 295 | discord_config: Arc::new(stub_discord_config()), |
| 296 | broker_client: dbrokerapi::state_client::Client::new("http://127.0.0.1:1".to_string()), |
| 297 | db: stores::Db::new_with_url_lazy("postgres://localhost/vmbench-unused") |
| 298 | .expect("create lazy db pool"), |
| 299 | premium_tier: Arc::new(RwLock::new(None)), |
| 300 | } |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | struct Timings { |
nothing calls this directly
no test coverage detected