improve watchvalue fanout

This commit is contained in:
Christien Rioux 2024-06-03 15:20:42 -04:00
parent 551ae8993b
commit c2ab220fb1
2 changed files with 1 additions and 22 deletions

View File

@ -251,7 +251,7 @@ impl RPCProcessor {
// Get the nodes that we know about that are closer to the the key than our own node
let closer_to_key_peers = network_result_try!(
routing_table.find_preferred_peers_closer_to_key(key, vec![CAP_DHT])
routing_table.find_preferred_peers_closer_to_key(key, vec![CAP_DHT, CAP_DHT_WATCH])
);
// See if we would have accepted this as a set, same set_value_count for watches

View File

@ -367,27 +367,6 @@ impl StorageManager {
Ok(None)
}
/// Handle a received 'Set Value' query
/// Returns a None if the value passed in was set
/// Returns a Some(current value) if the value was older and the current value was kept