mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-03-03 07:33:14 +00:00
Adjust liblmapi_example to use misc-chat fleet node
This commit is contained in:
parent
25ef828e15
commit
5918a294a3
@ -104,11 +104,12 @@ int main() {
|
||||
|
||||
// Configuration JSON for creating a node
|
||||
const char *config = "{"
|
||||
"\"mode\": \"Core\","
|
||||
"\"clusterId\": 16,"
|
||||
"\"numShards\": 5,"
|
||||
"\"shards\": [64, 128, 1, 32, 256],"
|
||||
"\"entryNodes\": [\"/dns4/boot-01.gc-us-central1-a.status.prod.status.im/tcp/30303/p2p/16Uiu2HAm8mUZ18tBWPXDQsaF7PbCKYA35z7WB2xNZH2EVq1qS8LJ\"],"
|
||||
"\"logLevel\": \"TRACE\","
|
||||
"\"mode\": \"Edge\","
|
||||
"\"clusterId\": 42,"
|
||||
"\"numShards\": 8,"
|
||||
// "\"shards\": [0,1,2,3,4,5,6,7],"
|
||||
"\"entryNodes\": [\"/dns4/node-01.do-ams3.misc.logos-chat.status.im/tcp/30303/p2p/16Uiu2HAkxoqUTud5LUPQBRmkeL2xP4iKx2kaABYXomQRgmLUgf78\"],"
|
||||
"\"networkingConfig\": {"
|
||||
"\"listenIpv4\": \"0.0.0.0\","
|
||||
"\"p2pTcpPort\": 60000,"
|
||||
|
||||
@ -4,6 +4,7 @@ import waku/factory/waku
|
||||
import waku/[requests/health_request, waku_core, waku_node]
|
||||
import waku/node/delivery_service/send_service
|
||||
import waku/node/delivery_service/subscription_service
|
||||
import libp2p/peerid
|
||||
import ./[api_conf, types]
|
||||
|
||||
logScope:
|
||||
|
||||
@ -91,6 +91,7 @@ proc setupSendProcessorChain(
|
||||
for i in 1 ..< processors.len:
|
||||
currentProcessor.chain(processors[i])
|
||||
currentProcessor = processors[i]
|
||||
trace "Send processor chain", index = i, processor = type(processors[i]).name
|
||||
|
||||
return ok(processors[0])
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user