From 8d0d382c59562c9716760fa4cc968c71e4c1757f Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Fri, 8 Dec 2023 20:13:14 +0300 Subject: [PATCH] add todo on peer storage behaviour Signed-off-by: onur-ozkan --- mm2src/mm2_p2p/src/behaviours/peer_store.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm2src/mm2_p2p/src/behaviours/peer_store.rs b/mm2src/mm2_p2p/src/behaviours/peer_store.rs index cd7b437f58..8d0bd44582 100644 --- a/mm2src/mm2_p2p/src/behaviours/peer_store.rs +++ b/mm2src/mm2_p2p/src/behaviours/peer_store.rs @@ -23,6 +23,9 @@ pub struct Connection { } /// A request/response protocol for some message codec. +/// +/// TODO: implement a scoring algorithm of peers depending on +/// their activities/connections. #[derive(Default)] pub struct Behaviour { /// The currently connected peers, their pending outbound and inbound responses and their known,