mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-05 23:43:11 +00:00
adapt code to latest nwaku
This commit is contained in:
parent
94e5a65249
commit
6e38c18aec
@ -345,6 +345,7 @@ async fn main() -> eframe::Result<()> {
|
|||||||
tcp_port: Some(60010),
|
tcp_port: Some(60010),
|
||||||
cluster_id: Some(16),
|
cluster_id: Some(16),
|
||||||
shards: vec![1, 32, 64, 128, 256],
|
shards: vec![1, 32, 64, 128, 256],
|
||||||
|
num_shards_in_network: Some(257),
|
||||||
// node_key: Some(SecretKey::from_str("2fc0515879e52b7b73297cfd6ab3abf7c344ef84b7a90ff6f4cc19e05a198027").unwrap()),
|
// node_key: Some(SecretKey::from_str("2fc0515879e52b7b73297cfd6ab3abf7c344ef84b7a90ff6f4cc19e05a198027").unwrap()),
|
||||||
max_message_size: Some("1024KiB".to_string()),
|
max_message_size: Some("1024KiB".to_string()),
|
||||||
relay_topics: vec![String::from(&game_topic)],
|
relay_topics: vec![String::from(&game_topic)],
|
||||||
|
|||||||
@ -55,6 +55,7 @@ impl App<Initialized> {
|
|||||||
tcp_port: Some(60010),
|
tcp_port: Some(60010),
|
||||||
cluster_id: Some(16),
|
cluster_id: Some(16),
|
||||||
shards: vec![1, 32, 64, 128, 256],
|
shards: vec![1, 32, 64, 128, 256],
|
||||||
|
num_shards_in_network: Some(257),
|
||||||
// node_key: Some(SecretKey::from_str("2fc0515879e52b7b73297cfd6ab3abf7c344ef84b7a90ff6f4cc19e05a198027").unwrap()),
|
// node_key: Some(SecretKey::from_str("2fc0515879e52b7b73297cfd6ab3abf7c344ef84b7a90ff6f4cc19e05a198027").unwrap()),
|
||||||
max_message_size: Some("1024KiB".to_string()),
|
max_message_size: Some("1024KiB".to_string()),
|
||||||
relay_topics: vec![String::from(&pubsub_topic)],
|
relay_topics: vec![String::from(&pubsub_topic)],
|
||||||
|
|||||||
@ -28,8 +28,11 @@ pub struct WakuNodeConfig {
|
|||||||
#[default(Some(true))]
|
#[default(Some(true))]
|
||||||
pub relay: Option<bool>,
|
pub relay: Option<bool>,
|
||||||
pub relay_topics: Vec<String>,
|
pub relay_topics: Vec<String>,
|
||||||
#[default(vec![1])]
|
#[default(vec![0])]
|
||||||
pub shards: Vec<usize>,
|
pub shards: Vec<usize>,
|
||||||
|
#[default(Some(1))]
|
||||||
|
#[serde(rename = "numShardsInNetwork")]
|
||||||
|
pub num_shards_in_network: Option<usize>,
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub max_message_size: Option<String>,
|
pub max_message_size: Option<String>,
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user