James Wilson
e7d15d03b3
Tweak logs and attempt to avoid races around removing nodes ( #504 )
...
* Tweak logs and attempt to avoid races around removing nodes
* wrapping_add in assign_id
2022-10-10 13:12:07 +01:00
Alexandru Vasile
09b44ad00f
Expose node's IP address via feed ( #491 )
...
* Fix typos
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* core: Extend `feed::LocatedNode` message with optional IP address
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* core: Expose IpAddr from locator task
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* core: Expose CLI flag to handle IP
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* tests: Consider Option<String> for IP address
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* core: Add node's IP directly to the Node's details
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* Adjust testing and serialize node's ip address
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* frontend: Propagate IP address for deserialization purposes
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
* core: Clarify the CLI flag documentation
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io >
2022-08-17 15:35:36 +03:00
James Wilson
b4b128f9fe
Tidy up stale connections. ( #406 )
...
* If messageId changes and network ID doesn't, remove 'old' message_id
* Boot nodes/connection when no recent messages received for it
* Separate task needed for soketto recv to avoid cancel-safety issues with new interval
* Wee tidy up
* cargo fmt
* Add some logging around node adding/removing
* Another log info msg
* a bit of tidy up
* bump stale node timeout to 60s
2021-09-21 15:49:42 +01:00
James Wilson
bd7a21ec39
Flumify everything
2021-08-12 16:01:17 +01:00
James Wilson
80d6ad916e
Address David's comments
2021-08-11 17:23:22 +01:00
James Wilson
b70ab9ed3d
Add license to the top of each source file
2021-07-29 17:34:40 +01:00
James Wilson
2ca5f6a1fb
cargo fmt
2021-07-27 12:38:05 +01:00
James Wilson
cf0e424803
Adapt shard to use hyper+soketto instead
2021-07-23 17:07:29 +01:00
James Wilson
cca1df2e21
use ws_client in shard, too, and make it better at handling core disconnecting
2021-07-20 13:04:10 +01:00
James Wilson
db8ea9a8f3
Add more tests, fix (and test for) a deadlock re overquota messages, more unbounded channels and less .awaiting
2021-07-15 10:53:02 +01:00
James Wilson
c1208b9e81
cargo fmt
2021-07-13 16:51:24 +01:00
James Wilson
9ac5ea7624
Various bits and pieces to address PR comments
2021-07-13 16:51:14 +01:00
James Wilson
f2adead2e9
rename binaries for clarity, and first pass of connect_to_servers test util
2021-07-09 19:41:47 +01:00