Esempio n. 1
0
void LitstrRepoProxy::load() {
  for (int repoId = RepoIdCount - 1; repoId >= 0; --repoId) {
    if (!getLitstrs(repoId).get()) {
      break;
    }
  }
}
Esempio n. 2
0
void LitstrRepoProxy::load() {
  for (int repoId = RepoIdCount - 1; repoId >= 0; --repoId) {
    // Return success on the first loaded repo.  In the case of an error we
    // continue on to the next repo.
    if (getLitstrs(repoId).get() == RepoStatus::success) {
      break;
    }
  }

  // No repos were loadable.  This is normal for non-repo-authoritative repos.
}