use announce macro instead of having to hardcode
This commit is contained in:
parent
e391d3f63f
commit
22281e21f8
2 changed files with 26 additions and 12 deletions
|
|
@ -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!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue