Split tcp handler and rotocontrol into seperate tasks

This commit is contained in:
Sebastian 2024-05-05 17:38:28 +02:00
parent e5e4e25438
commit 9bb7cc7a2c
2 changed files with 65 additions and 17 deletions

View file

@ -197,7 +197,6 @@ fn line(input: &str) -> IResult<&str, Command, VerboseError<&str>> {
pub fn parse_command(input: &str) -> Result<Command, String> {
let result = line(input);
println!("Input: {} Result: {:?}", input, result);
match result {
Ok(("", cmd)) => Ok(cmd),
Ok((rest, _)) => Err("Unable to parse rest".to_owned()),