Ignore/log RequestWindowIndex from self
This commit is contained in:
parent
103584ef27
commit
d882bfe65c
11
src/crdt.rs
11
src/crdt.rs
|
@ -1045,7 +1045,16 @@ impl Crdt {
|
||||||
from.debug_id(),
|
from.debug_id(),
|
||||||
ix,
|
ix,
|
||||||
);
|
);
|
||||||
assert_ne!(from.contact_info.tvu_window, me.contact_info.tvu_window);
|
if from.contact_info.tvu_window == me.contact_info.tvu_window {
|
||||||
|
warn!(
|
||||||
|
"Ignored {:x}:received RequestWindowIndex from ME {:x} {} ",
|
||||||
|
me.debug_id(),
|
||||||
|
from.debug_id(),
|
||||||
|
ix,
|
||||||
|
);
|
||||||
|
inc_new_counter!("crdt-window-request-address-eq", 1);
|
||||||
|
return None;
|
||||||
|
}
|
||||||
Self::run_window_request(&window, &me, &from, ix, blob_recycler)
|
Self::run_window_request(&window, &me, &from, ix, blob_recycler)
|
||||||
}
|
}
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
|
|
Loading…
Reference in New Issue