Procházet zdrojové kódy

Replace BTreeSet with HashSet

develop
Silvestr Predko před 2 roky
rodič
revize
3685ae65ac
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      common-api/src/api.rs

+ 2
- 2
common-api/src/api.rs Zobrazit soubor

@@ -1,12 +1,12 @@
1 1
 use crate::crypto::prelude::*;
2 2
 use near_account_id::AccountId;
3 3
 use serde::{Deserialize, Serialize};
4
-use std::{collections::BTreeSet, time::Duration};
4
+use std::{collections::HashSet, time::Duration};
5 5
 
6 6
 #[derive(Clone, Debug, Serialize, Deserialize)]
7 7
 pub struct PublicKeys {
8 8
     pub timeout: Duration,
9
-    pub participants: BTreeSet<AccountId>,
9
+    pub participants: HashSet<AccountId>,
10 10
 }
11 11
 
12 12
 #[derive(Clone, Debug, Serialize, Deserialize)]

Načítá se…
Zrušit
Uložit