refactor: Use HashSet
This commit is contained in:
parent
e3b874d336
commit
60a3abe752
1 changed files with 1 additions and 1 deletions
|
|
@ -685,7 +685,7 @@ async fn collect_required_state(
|
||||||
required_state_request: &BTreeSet<TypeStateKey>,
|
required_state_request: &BTreeSet<TypeStateKey>,
|
||||||
) -> Vec<Raw<AnySyncStateEvent>> {
|
) -> Vec<Raw<AnySyncStateEvent>> {
|
||||||
let mut required_state = Vec::new();
|
let mut required_state = Vec::new();
|
||||||
let mut wildcard_types: BTreeSet<&StateEventType> = BTreeSet::new();
|
let mut wildcard_types: HashSet<&StateEventType> = HashSet::new();
|
||||||
|
|
||||||
for (event_type, state_key) in required_state_request {
|
for (event_type, state_key) in required_state_request {
|
||||||
if wildcard_types.contains(event_type) {
|
if wildcard_types.contains(event_type) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue