Skip to content

Commit

Permalink
nugget
Browse files Browse the repository at this point in the history
  • Loading branch information
renan061 committed Jun 11, 2024
1 parent b30aa8a commit cec41ee
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions offchain/dispatcher/src/drivers/machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,16 @@ impl MachineDriver {
input_box: &InputBox,
broker: &impl BrokerSend,
) -> Result<(), BrokerFacadeError> {
let dapp_input_box =
match input_box.dapp_input_boxes.get(&self.dapp_address) {
None => {
debug!("No inputs for dapp {}", self.dapp_address);
return Ok(());
}

Some(d) => d,
};

self.process_inputs(context, dapp_input_box, broker).await?;
match input_box.dapp_input_boxes.get(&self.dapp_address) {
None => {
debug!("No inputs for dapp {}", self.dapp_address);
return Ok(());
}

Some(dapp_input_box) => {
self.process_inputs(context, dapp_input_box, broker).await?
}
};

println!("block.timestamp: {:?}", block.timestamp.as_u64());
context
Expand Down

0 comments on commit cec41ee

Please sign in to comment.