@@ -5,8 +5,19 @@ use std::pin::Pin;
5
5
use std:: rc:: Rc ;
6
6
7
7
use crate :: backend_api_trait:: BackendApiTrait ;
8
- use crate :: types:: label:: Label ;
9
- use crate :: types:: last_webhook_update_at:: LastWebhookUpdateAt ;
8
+ use crate :: types:: github_app:: GithubAppStoreMarker ;
9
+ use crate :: types:: installation_access_token_row:: InstallationAccessTokenRowStoreMarker ;
10
+ use crate :: types:: issue:: IssueStoreMarker ;
11
+ use crate :: types:: issue_comment:: IssueCommentStoreMarker ;
12
+ use crate :: types:: issue_comment_initial_sync_status:: IssueCommentsInitialSyncStatusStoreMarker ;
13
+ use crate :: types:: issues_initial_sync_status:: IssuesInitialSyncStatusStoreMarker ;
14
+ use crate :: types:: label:: { Label , LabelStoreMarker } ;
15
+ use crate :: types:: last_webhook_update_at:: { LastWebhookUpdateAt , LastWebhookUpdateAtStoreMarker } ;
16
+ use crate :: types:: license:: LicenseStoreMarker ;
17
+ use crate :: types:: milestone:: MilestoneStoreMarker ;
18
+ use crate :: types:: repository:: RepositoryStoreMarker ;
19
+ use crate :: types:: repository_initial_sync_status:: RepositoryInitialSyncStatusStoreMarker ;
20
+ use crate :: types:: user:: UserStoreMarker ;
10
21
use crate :: types:: {
11
22
github_app:: GithubApp , installation_access_token_row:: InstallationAccessTokenRow , issue:: Issue ,
12
23
issue_comment:: IssueComment , issue_comment_initial_sync_status:: IssueCommentsInitialSyncStatus ,
@@ -15,7 +26,7 @@ use crate::types::{
15
26
user:: User ,
16
27
} ;
17
28
use send_wrapper:: SendWrapper ;
18
- use typesafe_idb:: { StoreMarker , TypesafeDb } ;
29
+ use typesafe_idb:: TypesafeDb ;
19
30
use url:: Url ;
20
31
21
32
use super :: optimistic:: db:: DbWithOptimisticChanges ;
@@ -24,20 +35,40 @@ use super::websocket_updates::transport::TransportTrait;
24
35
use super :: DbSubscription ;
25
36
use super :: { error:: SyncResult , SyncEngine } ;
26
37
27
- pub type DbStoreMarkers = impl StoreMarker < IssueCommentsInitialSyncStatus >
28
- + StoreMarker < RepositoryInitialSyncStatus >
29
- + StoreMarker < IssueComment >
30
- + StoreMarker < InstallationAccessTokenRow >
31
- + StoreMarker < IssuesInitialSyncStatus >
32
- + StoreMarker < License >
33
- + StoreMarker < Label >
34
- + StoreMarker < Milestone >
35
- + StoreMarker < Repository >
36
- + StoreMarker < GithubApp >
37
- + StoreMarker < User >
38
- + StoreMarker < Issue >
39
- + StoreMarker < LastWebhookUpdateAt >
40
- + Default ;
38
+ pub type DbStoreMarkers = (
39
+ RepositoryInitialSyncStatusStoreMarker ,
40
+ (
41
+ IssueCommentsInitialSyncStatusStoreMarker ,
42
+ (
43
+ LastWebhookUpdateAtStoreMarker ,
44
+ (
45
+ IssueCommentStoreMarker ,
46
+ (
47
+ InstallationAccessTokenRowStoreMarker ,
48
+ (
49
+ IssuesInitialSyncStatusStoreMarker ,
50
+ (
51
+ LabelStoreMarker ,
52
+ (
53
+ LicenseStoreMarker ,
54
+ (
55
+ MilestoneStoreMarker ,
56
+ (
57
+ RepositoryStoreMarker ,
58
+ (
59
+ GithubAppStoreMarker ,
60
+ ( UserStoreMarker , ( IssueStoreMarker , ( ) ) ) ,
61
+ ) ,
62
+ ) ,
63
+ ) ,
64
+ ) ,
65
+ ) ,
66
+ ) ,
67
+ ) ,
68
+ ) ,
69
+ ) ,
70
+ ) ,
71
+ ) ;
41
72
42
73
impl < BackendApi : BackendApiTrait , Transport : TransportTrait , GithubApi >
43
74
SyncEngine < BackendApi , Transport , GithubApi >
0 commit comments