File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ pub struct BorsContext<Client: RepositoryClient> {
9
9
pub parser : CommandParser ,
10
10
pub db : Arc < dyn DbClient > ,
11
11
pub repository_loader : Arc < dyn RepositoryLoader < Client > > ,
12
- pub repositories : Arc < ArcSwap < HashMap < GithubRepoName , Arc < RepositoryState < Client > > > > > ,
12
+ pub repositories : ArcSwap < HashMap < GithubRepoName , Arc < RepositoryState < Client > > > > ,
13
13
}
14
14
15
15
impl < Client : RepositoryClient > BorsContext < Client > {
@@ -21,7 +21,7 @@ impl<Client: RepositoryClient> BorsContext<Client> {
21
21
// this unwrap is making me nervous, but if lhe repos loading
22
22
// fails we might as well restart the bot
23
23
let repositories = global_client. load_repositories ( ) . await ?;
24
- let repositories = Arc :: new ( ArcSwap :: new ( Arc :: new ( repositories) ) ) ;
24
+ let repositories = ArcSwap :: new ( Arc :: new ( repositories) ) ;
25
25
Ok ( Self {
26
26
parser,
27
27
db,
You can’t perform that action at this time.
0 commit comments