소스 검색

Replace BTreeSet with HashSet

develop
Silvestr Predko 2 년 전
부모
커밋
3685ae65ac
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      common-api/src/api.rs

+ 2
- 2
common-api/src/api.rs 파일 보기

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

Loading…
취소
저장