Better diagnostics and more basic flow structure

This commit is contained in:
Dominik Werder
2021-04-14 17:49:44 +02:00
parent 06c9963605
commit 91f3ec790c
11 changed files with 203 additions and 71 deletions

View File

@@ -93,9 +93,10 @@ impl ScalarType {
#[derive(Debug)]
pub struct Node {
pub id: u32,
pub host: String,
pub port: u16,
pub split: u8,
pub split: u32,
pub data_base_path: PathBuf,
pub ksprefix: String,
}
@@ -122,7 +123,6 @@ pub struct NodeConfig {
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Channel {
pub keyspace: u8,
pub backend: String,
pub name: String,
}
@@ -166,14 +166,10 @@ impl NanoRange {
}
#[test]
fn serde_channel() {
let _ex = "{\"name\":\"thechannel\",\"backend\":\"thebackend\"}";
}
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct ChannelConfig {
pub channel: Channel,
pub keyspace: u8,
pub time_bin_size: u64,
pub scalar_type: ScalarType,
pub shape: Shape,