You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The sync response in crates/client/src/listeners.rs hard-codes a batch size of 500 events with an explicit TODO noting this is a temporary workaround:
// crates/client/src/listeners.rs:293-304// TODO: migrate to heads-based sync — can't filter by state_hash in DAG model
events.into_iter().take(500).collect()
There are three inconsistent hardcoded limits:
500 events in the sync response batch (listeners.rs:296)
10_000 as a max batch in listeners.rs:256
10_000 in crates/storage/src/store.rs:287
None of these are exposed through ClientConfig or a named constant.
Impact
Cannot tune for different network conditions without changing code
Inconsistent limits across the sync path
The TODO signals this is blocking full DAG-based sync protocol migration
Problem
The sync response in
crates/client/src/listeners.rshard-codes a batch size of 500 events with an explicit TODO noting this is a temporary workaround:There are three inconsistent hardcoded limits:
500events in the sync response batch (listeners.rs:296)10_000as a max batch inlisteners.rs:25610_000incrates/storage/src/store.rs:287None of these are exposed through
ClientConfigor a named constant.Impact
Fix
ClientConfigfor runtime tuningLocation
crates/client/src/listeners.rs:256, 296-304crates/storage/src/store.rs:287Found during
Codebase audit at commit
18119e343ec53a9393312006d9d3b205129f696d