(&self, application_id: &str, dev_eui: &str, event: &str)
| 242 | } |
| 243 | |
| 244 | fn get_event_topic(&self, application_id: &str, dev_eui: &str, event: &str) -> Result<String> { |
| 245 | Ok(self.templates.render( |
| 246 | "event_topic", |
| 247 | &EventTopicContext { |
| 248 | application_id: application_id.to_string(), |
| 249 | dev_eui: dev_eui.to_string(), |
| 250 | event: event.to_string(), |
| 251 | }, |
| 252 | )?) |
| 253 | } |
| 254 | |
| 255 | async fn publish_event(&self, topic: &str, b: Vec<u8>) -> Result<()> { |
| 256 | info!(topic = %topic, "Publishing event"); |
no test coverage detected