Commit Graph

3672 Commits

Author SHA1 Message Date
lunar-mining
2f6909ab6a net: create session() function that returns an Arc pointer to session 2022-07-09 12:47:19 +02:00
lunar-mining
967f9ec770 net: channel hosts a pointer to Session
solved a bug which warned Session could not be made into an object.

documented here: https://github.com/rust-lang/rust/issues/51443
and here: https://stackoverflow.com/questions/72838225/rust-trait-warning-method-references-the-self-type-in-its-where-clause
2022-07-09 12:47:19 +02:00
lunar-mining
ab2a5af40b net: error[E0038]: Weak pointer to parent trait from child
Provokes the following error:

 error[E0038]: the trait `Session` cannot be made into an object
  --> src/net/channel.rs:72:14
   |
72 |     session: SessionWeakPtr,
   |              ^^^^^^^^^^^^^^ `Session` cannot be made into an object
   |
note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
  --> src/net/session/mod.rs:79:14
   |
76 | pub trait Session: Sync {
   |           ------- this trait cannot be made into an object...
...
79 |     async fn register_channel(
   |              ^^^^^^^^^^^^^^^^ ...because associated function `register_channel` has no `self` parameter
help: consider turning `register_channel` into a method by giving it a `&self` argument
   |
79 |     async fn register_channel(&self,
   |                               ++++++
help: alternatively, consider constraining `register_channel` so it does not apply to trait objects
   |
82 |         executor: Arc<Executor<'_, Self: Sized>>,
   |                                  +++++++++++++
-----------------------
2022-07-09 12:47:19 +02:00
narodnik
5382a76eac use div(f) instead of <f> for divisor of f 2022-07-09 09:54:58 +02:00
narodnik
2bcf9e3b58 ec pairing class group divisors in sage 2022-07-09 09:45:23 +02:00
narodnik
324f43d097 add #random to default autojoin 2022-07-08 20:41:58 +02:00
ghassmo
f8369fd605 bin/ircd/script: minor changes 2022-07-05 17:03:03 +03:00
ghassmo
47ee7d7e5b bin/ircd/script: send cap command from meeting bot on starting 2022-07-05 16:41:52 +03:00
spital
68fbb4367e Tested rust 1.62, added Openssl and fonts-lato to avoid few test panic (#85)
* Dockerfile added for Fedora, Alpine, Debian

* Dockerfiles moved to ./contrib/docker, "." filter needed for jq in debian-buster

* Deleted dockerfiles from old dir, "." filter needed for jq in debian-buster

* Amend Debian Dockerfile to allow build with rust nightly

* add fonts-lato to fix few test panic at called `Result::unwrap()` on an `Err` value: BackendError(FontError(NoSuchFont("sans-serif", "normal")))
2022-07-05 03:38:15 +03:00
parazyd
86bb62f627 ircd: Add more default autojoin channels. 2022-07-03 16:30:54 +02:00
parazyd
e4577b9c66 ircd: Clippy lints. 2022-07-03 15:29:01 +02:00
parazyd
0063271679 Update project dependencies. 2022-07-03 15:26:35 +02:00
parazyd
b436d659ba ircd: Implement IRC TLS listener. 2022-07-03 14:29:30 +02:00
ghassmo
05a6939950 bin/ircd: clean up 2022-07-03 15:12:27 +03:00
ghassmo
aa43e01e3a bin/ircd: change seen_msg_ids from vector to fixed ringbuffer 2022-07-03 12:33:24 +03:00
mohab metwally
e4b97da335 [script/research/crypsinous] updated master docs with toward decentralized crypsinous 2022-07-02 23:40:29 +02:00
ghassmo
7c2f951d5c bin/ircd: minor fixs to irc server 2022-07-02 18:37:05 +03:00
ghassmo
9fdc11bd70 raft: add sent messages to seen_msgs vector 2022-07-02 18:16:22 +03:00
narodnik
f9b4c1d913 increase maximum length of nick to 32 2022-07-01 19:29:58 +02:00
narodnik
978028f741 incomplete pairings in sage 2022-07-01 17:58:34 +02:00
lunar-mining
b2734bf42b net: comment out unimplemented code 2022-07-01 11:01:22 +02:00
lunar-mining
af68236b8a net: rename selector_id() to type_id() 2022-07-01 10:59:29 +02:00
ghassmo
36e9faf2f7 raft: major fix in protocol_raft 2022-07-01 09:58:48 +03:00
aggstam
d50599c5fc irc-raft: updated with latest changes 2022-06-30 16:10:21 +03:00
ghassmo
7023481020 bin/ircd: major fix for messages history 2022-06-30 15:40:17 +03:00
ghassmo
d9da1b316f raft/consensus: fix bugs & clean up 2022-06-30 04:48:20 +03:00
ghassmo
5e0dc9e6b5 bin/taud: minor changes inside main 2022-06-30 04:00:18 +03:00
ghassmo
65393bc322 raft: proper names for msgs and commits channels & minor changes 2022-06-30 03:38:38 +03:00
ghassmo
d97e1d8bae bin/ircd: implement CAP command 2022-06-30 02:09:46 +03:00
ghassmo
231e9dbfab bin/ircd: minor changes for DM messages 2022-06-30 01:09:15 +03:00
aggstam
59d4711e24 blockchain/metadatastore.rs: fixed genesis streamlet metadata hash 2022-06-30 00:26:53 +03:00
aggstam
54ede683a2 consensus: removed public key from Vote, validation through Participant.public_key 2022-06-29 23:54:31 +03:00
aggstam
633fbc362a consensus: removed public key from Block Proposal, validation through Participant.public_key 2022-06-29 23:43:21 +03:00
aggstam
0f36ed8e9e consensus: added node public key to Participant struct 2022-06-29 23:27:58 +03:00
ghassmo
cdd139eefb bin/ircd: fix a bug in DM 2022-06-29 15:21:59 +03:00
ghassmo
010ddad754 bin/ircd: implement DM messages 2022-06-29 15:04:36 +03:00
ghassmo
89e756438b change default port for tau and faucetd 2022-06-29 14:22:46 +03:00
ghassmo
9f819b0dba general clean up and run cargo clippy for all bins 2022-06-29 01:15:03 +03:00
ghassmo
d0afa63b5a bin/ircd: increase the limit of message length 2022-06-28 19:07:27 +03:00
ghassmo
5d951800b1 bin/ircd: clean up code 2022-06-28 19:06:07 +03:00
lunar-mining
c155861b1a net/settings: change outbound_retry_seconds default to 20 minutes 2022-06-28 11:00:07 +02:00
lunar-mining
e8ae96ff9c net: keep looping load_addr + print a warning instead of exiting with error 2022-06-28 10:52:25 +02:00
lunar-mining
f92dc65e27 dnetview: implement scroll 2022-06-28 09:00:04 +02:00
Dastan-glitch
79f869c727 bin/ircd: add End of NAMES list 2022-06-28 01:23:57 +00:00
ghassmo
a9edf9b2de bin/ircd: define const for messages and nicknames length 2022-06-28 03:50:26 +03:00
ghassmo
2e332d2b89 bin/ircd: send NAMES msg after joining a channel 2022-06-28 02:43:34 +03:00
ghassmo
43fb491702 bin/ircd: restrict irc messages to have a maximum length of 512 characters 2022-06-28 02:05:18 +03:00
ghassmo
8e9fcccc7d bin/ircd: restrict nicknamesn to have a maximum length of nine characters 2022-06-28 01:57:51 +03:00
ghassmo
e5bde0c6d1 system/subscriber: use warn msg instead of panic once notify call failed 2022-06-28 01:50:47 +03:00
ghassmo
06db050229 bin/ircd: send messages in buffer to the client after JOIN command 2022-06-28 01:43:53 +03:00