Skip to content

Commit

Permalink
Remove dbgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kris030 committed Aug 4, 2023
1 parent 251ca89 commit d91037c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server/src/event_bus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ impl EventBus {
pub async fn resolve_send(&self, event: (ConcreteType, ConcreteValue)) -> anyhow::Result<()> {
let clients = self.clients.read().await;
let Some(v) = clients.get(&event.0) else {

log::debug!("NO CLIENT FOR {:?}", &event);
log::error!("NO CLIENT FOR {:?}", &event.0);
return Ok(());
};
self.send_all(event, v)
Expand Down Expand Up @@ -92,7 +91,6 @@ impl EventBus {
event: (ConcreteType, ConcreteValue),
clients: &Vec<SubscriptionId>,
) -> anyhow::Result<()> {
dbg!((&event, clients));
for client in clients {
self.send(event.clone(), client)?;
}
Expand Down Expand Up @@ -347,8 +345,6 @@ async fn connect_roland(event_bus: Arc<EventBus>) -> anyhow::Result<()> {
if let Some((track_index, val)) = res {
track_sensor_state[track_index] = val;

dbg!(&track_sensor_state);

event_bus
.resolve_send((
ConcreteType::TrackSensor(event::TrackSensor),
Expand Down

1 comment on commit d91037c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Artifacts

View all

base roland
aarch64-unknown-linux-gnu Download Download
aarch64-unknown-linux-musl Download Download
armv7-unknown-linux-gnueabihf Download Download
armv7-unknown-linux-musleabihf Download Download
x86_64-pc-windows-msvc Download Download
x86_64-unknown-linux-gnu Download Download
x86_64-unknown-linux-musl Download Download

Please sign in to comment.