Skip to content

Commit 53348ae

Browse files
authored
fix(project-cache): Fix saturating duration since order (#4728)
The order is wrong, this always yields 0.
1 parent fd6c824 commit 53348ae

File tree

1 file changed

+1
-1
lines changed
  • relay-server/src/services/projects/cache

1 file changed

+1
-1
lines changed

relay-server/src/services/projects/cache/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ impl CompletedFetch {
398398
fn delay(&self) -> Option<Duration> {
399399
self.fetch
400400
.previous_fetch
401-
.map(|pf| pf.duration_since(self.fetch.initiated))
401+
.map(|pf| self.fetch.initiated.duration_since(pf))
402402
}
403403

404404
/// Returns the duration between first initiating the fetch and `now`.

0 commit comments

Comments
 (0)