@@ -12,7 +12,6 @@ use parking_lot::Mutex;
1212use regex:: Regex ;
1313use serde:: { Deserialize , Serialize } ;
1414
15- use crate :: db;
1615use crate :: self_profile:: SelfProfileCache ;
1716use collector:: compile:: benchmark:: category:: Category ;
1817use collector:: { Bound , MasterCommit } ;
@@ -128,7 +127,7 @@ pub struct SiteCtxt {
128127 /// Cached site landing page
129128 pub landing_page : ArcSwap < Option < Arc < crate :: api:: graphs:: Response > > > ,
130129 /// Index of various common queries
131- pub index : ArcSwap < crate :: db :: Index > ,
130+ pub index : ArcSwap < database :: Index > ,
132131 /// Cached master-branch Rust commits
133132 pub master_commits : Arc < ArcSwap < MasterCommitCache > > , // outer Arc enables mutation in background task
134133 /// Cache for self profile data
@@ -138,12 +137,12 @@ pub struct SiteCtxt {
138137}
139138
140139impl SiteCtxt {
141- pub fn summary_scenarios ( & self ) -> Vec < crate :: db :: Scenario > {
140+ pub fn summary_scenarios ( & self ) -> Vec < database :: Scenario > {
142141 vec ! [
143- crate :: db :: Scenario :: Empty ,
144- crate :: db :: Scenario :: IncrementalEmpty ,
145- crate :: db :: Scenario :: IncrementalFresh ,
146- crate :: db :: Scenario :: IncrementalPatch ( "println" . into( ) ) ,
142+ database :: Scenario :: Empty ,
143+ database :: Scenario :: IncrementalEmpty ,
144+ database :: Scenario :: IncrementalFresh ,
145+ database :: Scenario :: IncrementalPatch ( "println" . into( ) ) ,
147146 ]
148147 }
149148
@@ -160,7 +159,7 @@ impl SiteCtxt {
160159 let pool = Pool :: open ( db_url) ;
161160
162161 let mut conn = pool. connection ( ) . await ;
163- let index = db :: Index :: load ( & mut * conn) . await ;
162+ let index = database :: Index :: load ( & mut * conn) . await ;
164163
165164 let config = if let Ok ( s) = fs:: read_to_string ( "site-config.toml" ) {
166165 toml:: from_str ( & s) ?
0 commit comments