-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: replace channel with callback of transport in swarm (#561)
* Separate transport operation in swarm * Implement PayloadSender for SwarmTransport * Update handshake api * Update callback mode * Remove channel * Use MessageHandler in callback * Update rings-core api in rings-node * Simplify return type of gen_sorted_ht and gen_pure_dht * Implement a node in default test for monitoring * Fix static check of connection handler test * Fix static check of tests * Remove not using module and its dependencies * Fix static check of wasm tests * Fix callback of dummy transport * Should always invoke user defined callbacks * Should notify connected after data channel opened * Fix dummy test datachannel callback behaviour * Wait for msgs in stabilization and storage tests * Fix test_fourth_node_connection by incr wait time * Remove meaningless disconnected cleanup test * Fix len error in test_extend_data * Fix test_extend_data in storage handler * Test case enhance * Temeparary skip dummy tests * Wait for msg arriving in test * Fix handshake_on_both_sides test * Fix receiver dropping bug in test_stabilization_final_dht * Upgrade stabilization api * Hide the SwarmTransport in the Swarm of rings-core
- Loading branch information
Showing
64 changed files
with
1,868 additions
and
3,827 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.