Skip to content

Commit

Permalink
Refactor time capping waiting for a resource
Browse files Browse the repository at this point in the history
  • Loading branch information
astrada committed Nov 19, 2016
1 parent 9aa6639 commit 669bc32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drive.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ let download_resource resource =
"Already downloading resource (id=%Ld): check number %d\n%!"
resource.Cache.Resource.id
n;
let n' = if n > 6 then 6 else n in
let n' = min n 6 in
GapiUtils.wait_exponential_backoff n';
check_state (n + 1)
end
Expand Down

0 comments on commit 669bc32

Please sign in to comment.