Code cleanup

- Cleaned up code around entities and caching
- Rewrote CLI descriptions
- New ingame check.
 - Now the webradar will correctly identify if you are on a server or not.
This commit is contained in:
Janek
2023-11-28 12:30:44 +01:00
parent 62deed2706
commit e1ff81d15d
11 changed files with 405 additions and 344 deletions

View File

@@ -15,10 +15,6 @@ mod webserver;
async fn main() -> anyhow::Result<()> {
let cli = Cli::parse();
if std::env::var("RADARFLOW_LOG").is_err() {
std::env::set_var("RADARFLOW_LOG", "warn")
}
simple_logger::SimpleLogger::new()
.with_level(cli.loglevel.into())
.init()
@@ -35,7 +31,6 @@ async fn main() -> anyhow::Result<()> {
if let Err(err) = dma::run(cli.connector, cli.pcileech_device, cli.poll_rate, rwlock_clone).await {
log::error!("Error in dma thread: {}", err.to_string());
}
});
tokio::spawn(async move {