mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 14:01:37 +00:00
Update settle duration in TestServeSession to improve message handling
- Adjusted the settle duration from 300ms to 100ms to ensure it is shorter than the 200ms reconciliation timer. This change prevents capturing tree-correction messages as part of the same batch, enhancing the accuracy of message processing in the test environment. This update improves the reliability of message handling during test sessions.
This commit is contained in:
parent
9a70bf65e9
commit
37d2ca8986
1 changed files with 3 additions and 1 deletions
|
|
@ -244,7 +244,9 @@ impl TestServeSession {
|
|||
// After receiving the first message, keep collecting for this duration
|
||||
// after the LAST received message. This handles split events on Windows
|
||||
// where rename = REMOVE + CREATE may produce separate messages.
|
||||
let settle = Duration::from_millis(300);
|
||||
// Must be shorter than the 200ms reconciliation timer to avoid
|
||||
// capturing tree-correction messages as part of the same batch.
|
||||
let settle = Duration::from_millis(100);
|
||||
|
||||
loop {
|
||||
// Hard timeout: no messages at all within 10 seconds
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue