crypto: Use consistent ordering for the group session sharing log line
parent
4af9b74776
commit
377b8ea75a
|
@ -13,7 +13,7 @@
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
collections::{BTreeMap, HashMap, HashSet},
|
collections::{BTreeMap, BTreeSet, HashMap, HashSet},
|
||||||
sync::Arc,
|
sync::Arc,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -313,10 +313,10 @@ impl GroupSessionManager {
|
||||||
info!(
|
info!(
|
||||||
"Sharing outbound session at index {} with {:?}",
|
"Sharing outbound session at index {} with {:?}",
|
||||||
outbound.message_index().await,
|
outbound.message_index().await,
|
||||||
devices.iter().fold(HashMap::new(), |mut acc, d| {
|
devices.iter().fold(BTreeMap::new(), |mut acc, d| {
|
||||||
acc.entry(d.user_id())
|
acc.entry(d.user_id())
|
||||||
.or_insert_with(Vec::new)
|
.or_insert_with(BTreeSet::new)
|
||||||
.push(d.device_id());
|
.insert(d.device_id());
|
||||||
acc
|
acc
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue