Commit graph

71 commits

Author SHA1 Message Date
e9add586a5
Add test for priority queue (it seems to work as intended) 2021-10-20 16:32:47 +02:00
de981aace0
apply fmt 2021-10-18 12:59:55 +02:00
cbdd6ab215
Make try_connect take &Arc<Self>
Actually no
2021-10-18 12:59:24 +02:00
b32a799c76
Return None when no IPs could be resolved 2021-10-18 12:41:46 +02:00
238c0162c0
Add parse_and_resolve_peer_addr 2021-10-18 12:39:19 +02:00
e621ba49de
Fix test 2021-10-18 11:29:41 +02:00
dfb0ebb8e1
Full mesh peering strategy uses our local address if necessary 2021-10-15 15:34:03 +02:00
48d6a72ebd
Update kuska-handshake dependency to use official 0.2.0 release 2021-10-15 10:39:40 +02:00
cfa64bc745
Add netapp function to drop all handlers 2021-10-14 17:33:12 +02:00
8a0bfa0ff6
Change call() to take a ref to the message to be sent
Handlers also receive a ref
2021-10-14 16:11:07 +02:00
fba49cf93d
Add .is_up() on connection state 2021-10-14 14:13:44 +02:00
fe16ff25e9
Export NodeKey and NetworkKey types 2021-10-14 12:08:39 +02:00
7e49d0dac8
Make a public function to parse peer addresses 2021-10-14 11:58:09 +02:00
d62b161040
Remove some dependencies 2021-10-14 11:48:14 +02:00
01a2737bd8
Document 2021-10-14 11:35:05 +02:00
baa714538d
Update dependencies 2021-10-14 10:50:14 +02:00
e0c63415d3
Fix cargo fmt 2021-10-13 18:07:34 +02:00
abaff96f7d
test in separate drone step (redundant stuff tho) 2021-10-13 18:06:16 +02:00
dd881e2e60
Add a modest integration test 2021-10-13 18:05:49 +02:00
7eea46dcf3
Properly implement watches for Basalt 2021-10-13 17:30:41 +02:00
bc86bd3986
improve comment 2021-10-13 17:14:26 +02:00
70839d70d8
Try to handle termination and closing of stuff properly 2021-10-13 17:12:13 +02:00
8dede69dee
Fix netapp protocol & adapt basalt to new api 2021-10-13 12:33:14 +02:00
d9bd1182f7
Move out things from conn.rs into two separate files 2021-10-12 18:13:07 +02:00
f87dbe73dc
WIP v0.3.0 with changed API 2021-10-12 17:59:46 +02:00
040231d554
fix fmt lints 2021-10-12 14:56:29 +02:00
a4069d703c
Use tokio_util::compat instead of the one from kuska-handshake 2021-10-12 14:51:28 +02:00
b14515a422
Rewrite because clippy didn't understand drop 2021-10-12 13:44:42 +02:00
50806b54b7
fix cargo fmt style 2021-10-12 13:33:42 +02:00
6c8dd95d20
Add cargo fmt and clippy checks to drone CI 2021-10-12 13:32:39 +02:00
940750b5db
fix clippy on basalt code 2021-10-12 13:28:57 +02:00
74e661febe
Fix clippy lints 2021-10-12 13:18:24 +02:00
7753b789b7
Upgrade to tokio 1.0 2021-10-12 13:07:34 +02:00
90f8fb2836 Fix drone ? 2021-03-15 13:03:23 +01:00
a1892a95a6 update versions 2021-03-10 22:47:19 +01:00
c05600d749 make basalt optionnal during compilation 2021-03-10 22:32:14 +01:00
a2e2f5e96b v0.1.1 2021-02-18 12:17:15 +01:00
ebc389393c Add CI badge 2021-02-18 12:10:10 +01:00
4e85862a85 Publish Bᴀsᴀʟᴛ 2021-02-18 12:07:04 +01:00
4d01a9dd0e Use nightly rust 2021-02-17 18:23:44 +01:00
ab41966a9d add drone CI 2021-02-17 17:45:02 +01:00
6ccf3a8495 Add resilience when peer_addr() fails 2021-02-17 17:43:07 +01:00
9e38b82edc Update documentation 2020-12-14 11:41:25 +01:00
5d07711900 Update README 2020-12-14 11:40:13 +01:00
6fc20657d8 update arc-swap 2020-12-14 11:36:39 +01:00
c81fd742c4 Prepare Cargo.toml for publication 2020-12-14 11:35:41 +01:00
e761f2f6ef Merge branch 'master' of git.deuxfleurs.fr:lx/netapp 2020-12-14 11:22:29 +01:00
3aa46dfe95 We don't want to publish this 2020-12-14 11:19:59 +01:00
6742638c81 Replace pk,pubkey,PublicKey by id,NodeID,etc 2020-12-12 21:14:15 +01:00
5040198972 Make it passive-client-friendly 2020-12-12 19:27:18 +01:00