node: Added docstring about Node being recreated upon IP alteration
As this behaviour might be confusing for the users, the docstring should
help.
@@ -54,6 +54,10 @@ impl TimestampedAverage {
}
/// Node represents a cluster node along with it's data and connections
+///
+/// Note: if a Node changes its address (the optionally translated address),
+/// then it is not longer represented by the same instance of Node struct,
+/// but instead a new instance is created (for implementation reasons).
#[derive(Debug)]
pub struct Node {
pub host_id: Uuid,
