tests: add one for Send

This commit is contained in:
discord9
2024-04-26 15:36:36 +08:00
parent 1067d3453d
commit 3fb3fb18c2

View File

@@ -63,10 +63,14 @@ pub struct FlowNodeManager<'subgraph> {
tick_manager: FlowTickManager,
}
/// Just check if NodeManager's other fields are `Send` so later we can refactor so A Flow Node Manager
/// can manage multiple flow worker(thread) then we can run multiple flow worker in a single flow node manager
#[test]
fn check() {
fn check_is_send() {
fn is_send<T: Send>() {}
is_send::<TableIdNameMapper>();
is_send::<FlowWorkerContext>();
is_send::<FlowTickManager>();
}
/// mapping of table name <-> table id should be query from tableinfo manager