factor out into common crate
This commit is contained in:
@@ -29,6 +29,7 @@ dbconn = { path = "../dbconn" }
|
||||
tokio-postgres = { version = "0.7.6", features = ["runtime", "with-chrono-0_4", "with-serde_json-1"] }
|
||||
disk = { path = "../disk" }
|
||||
items = { path = "../items" }
|
||||
items_0 = { path = "../items_0" }
|
||||
items_2 = { path = "../items_2" }
|
||||
parse = { path = "../parse" }
|
||||
streams = { path = "../streams" }
|
||||
|
||||
@@ -273,7 +273,7 @@ impl EventsHandlerScylla {
|
||||
Ok(k) => match k {
|
||||
ChannelEvents::Events(mut item) => {
|
||||
if coll.is_none() {
|
||||
coll = Some(items_2::streams::Collectable::new_collector(item.as_ref()));
|
||||
coll = Some(items_0::collect_s::Collectable::new_collector(item.as_ref()));
|
||||
}
|
||||
let cl = coll.as_mut().unwrap();
|
||||
cl.ingest(item.as_collectable_mut());
|
||||
|
||||
Reference in New Issue
Block a user