Skip to content

Commit 88eb1af

Browse files
authored
Merge pull request #154 from meilisearch/use-classic-macos-machine
Use a classic macos machine
2 parents 1a21e5c + 01af0dc commit 88eb1af

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ${{ matrix.os }}
1717
strategy:
1818
matrix:
19-
os: [ubuntu-latest, macos-latest-xlarge, windows-latest]
19+
os: [ubuntu-latest, macos-latest, windows-latest]
2020
rust:
2121
- stable
2222
- beta

src/writer.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ use heed::{MdbError, PutFlags, RoTxn, RwTxn};
1212
use nohash::{BuildNoHashHasher, IntMap};
1313
use rand::rngs::StdRng;
1414
use rand::{Rng, SeedableRng};
15-
use rayon::iter::repeatn;
16-
use rayon::{current_num_threads, prelude::*, Scope};
15+
use rayon::iter::repeat_n;
16+
use rayon::prelude::*;
17+
use rayon::{current_num_threads, Scope};
1718
use roaring::RoaringBitmap;
1819
use thread_local::ThreadLocal;
1920

@@ -1124,7 +1125,7 @@ impl<D: Distance> Writer<D> {
11241125
to_insert: &RoaringBitmap,
11251126
frozen_reader: &FrozzenReader<D>,
11261127
) -> Result<IntMap<ItemId, RoaringBitmap>> {
1127-
repeatn(rng.next_u64(), roots.len())
1128+
repeat_n(rng.next_u64(), roots.len())
11281129
.zip(roots)
11291130
.map(|(seed, root)| {
11301131
opt.cancelled()?;

0 commit comments

Comments
 (0)