Format webui
This commit is contained in:
parent
d13432e35d
commit
690aaf4d40
22
src/webui.rs
22
src/webui.rs
@ -136,12 +136,26 @@ async fn start_socket(
|
|||||||
|
|
||||||
state.parameters = p;
|
state.parameters = p;
|
||||||
|
|
||||||
state.strip_tx.as_ref()?
|
state
|
||||||
|
.strip_tx
|
||||||
|
.as_ref()?
|
||||||
.lock()
|
.lock()
|
||||||
.map_err(|_| println!("{:?}", io::Error::new(io::ErrorKind::Other, "Failed to get a lock")))
|
.map_err(|_| {
|
||||||
|
println!(
|
||||||
|
"{:?}",
|
||||||
|
io::Error::new(io::ErrorKind::Other, "Failed to get a lock")
|
||||||
|
)
|
||||||
|
})
|
||||||
.ok()?
|
.ok()?
|
||||||
.send(strip::Message::ChangePattern(state.parameters.into_pattern()))
|
.send(strip::Message::ChangePattern(
|
||||||
.map_err(|_| println!("{:?}", io::Error::new(io::ErrorKind::Other, "Failed to send to channel")))
|
state.parameters.into_pattern(),
|
||||||
|
))
|
||||||
|
.map_err(|_| {
|
||||||
|
println!(
|
||||||
|
"{:?}",
|
||||||
|
io::Error::new(io::ErrorKind::Other, "Failed to send to channel")
|
||||||
|
)
|
||||||
|
})
|
||||||
.ok()?;
|
.ok()?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user