fix: loss of order in Lua sequence table for inter-thread data exchange

This commit is contained in:
sxyazi 2024-08-10 13:25:12 +08:00
parent 4150f4014c
commit b71480781c
No known key found for this signature in database

View file

@ -27,7 +27,7 @@ impl Sendable {
}
if map.len() == i as usize - 1 {
Data::List(map.into_values().collect())
Data::List((1..i).map(|i| map.remove(&DataKey::Integer(i)).unwrap()).collect())
} else {
Data::Dict(map)
}