use announce macro instead of having to hardcode

This commit is contained in:
Noa Aarts 2024-12-10 17:22:31 +01:00
parent e391d3f63f
commit 22281e21f8
Signed by: noa
GPG key ID: 1850932741EFF672
2 changed files with 26 additions and 12 deletions

View file

@ -10,7 +10,7 @@ use std::{
use chrono::Local;
use flurry::{
config::{GRID_LENGTH, HOST, IMAGE_SAVE_INTERVAL, JPEG_UPDATE_INTERVAL},
flutclient::{FlutClient, },
flutclient::{FlutClient, ParserTypes},
grid::{self, Flut},
webapi::WebApiContext,
AsyncResult, COUNTER,
@ -102,10 +102,7 @@ async fn main() {
let grids: Arc<[Flut<u32>; GRID_LENGTH]> = [grid::Flut::init(800, 600, 0xff_00_ff_ff)].into();
tracing::trace!("created grids");
#[cfg(feature = "text")]
println!("Enabling text");
#[cfg(feature = "binary")]
println!("Enabling binary");
ParserTypes::announce();
let Ok(flut_listener) = TcpListener::bind(HOST).await else {
tracing::error!(