Skip to content

Commit e49cee5

Browse files
authored
added constructor for omnievent service (#29)
* added constructor for omnievent service * cheeky formatter
1 parent 6aa6ce3 commit e49cee5

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

omnievent/src/grpc.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ pub struct OmniEventServiceImpl<MP, DB> {
1818
event_manager: Arc<EventManager<MP, DB>>,
1919
}
2020

21+
impl<MP, DB> OmniEventServiceImpl<MP, DB> {
22+
pub fn new(event_manager: Arc<EventManager<MP, DB>>) -> Self {
23+
Self { event_manager }
24+
}
25+
}
26+
2127
#[tonic::async_trait]
2228
impl<MP, DB> OmniEventService for OmniEventServiceImpl<MP, DB>
2329
where

0 commit comments

Comments
 (0)