We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc30947 commit 8045bf6Copy full SHA for 8045bf6
site/src/load.rs
@@ -116,14 +116,6 @@ impl MasterCommitCache {
116
updated: Instant::now(),
117
})
118
}
119
-
120
- /// Returns an empty cache that is marked as stale
121
- pub fn empty() -> Self {
122
- Self {
123
- commits: Vec::new(),
124
- updated: Instant::now() - std::time::Duration::from_secs(2 * 60),
125
- }
126
127
128
129
/// Site context object that contains global data
@@ -188,9 +180,7 @@ impl SiteCtxt {
188
180
189
181
};
190
182
191
- let master_commits = MasterCommitCache::download()
192
- .await
193
- .unwrap_or(MasterCommitCache::empty()); // still run the site if we can't get the commits right now
183
+ let master_commits = MasterCommitCache::download().await?;
194
184
195
185
Ok(Self {
196
186
config,
0 commit comments