(&mut self, msg: Product)
| 113 | async fn terminate(&mut self) {} |
| 114 | |
| 115 | async fn handle_message(&mut self, msg: Product) -> ProcResult<Product> { |
| 116 | |
| 117 | // Parition_key |
| 118 | let pk = match msg.ctype { |
| 119 | Category::Cars => "cars".to_owned(), |
| 120 | Category::Mobiles => "mobiles".to_owned(), |
| 121 | Category::Accessories => "accessories".to_owned() |
| 122 | }; |
| 123 | |
| 124 | ProcResult::Dispatch(msg, Some(pk)) |
| 125 | } |
| 126 | } |
| 127 | |
| 128 |
nothing calls this directly
no outgoing calls
no test coverage detected