tikv / yatp

Yet another thread pool in rust for both callbacks or futures.
Apache License 2.0
135 stars 32 forks source link

cargo.toml TODO makes other projects compile error #74

Open Tianion opened 1 year ago

Tianion commented 1 year ago

https://github.com/tikv/yatp/blob/7ed25299d60a5338bea4ac0ed7470887ab74a010/Cargo.toml#L23

# TODO: remove this patch after the next version is released.
[patch.crates-io]
crossbeam-deque = {git = "https://github.com/crossbeam-rs/crossbeam", rev="41ed3d948720f26149b2ebeaf58fe8a193134056"}

error

error[E0599]: no method named `steal_batch_with_limit_and_pop` found for struct `Injector` in the current scope
   --> /root/.cargo/git/checkouts/yatp-e704b73c3ee279b6/7ed2529/src/queue/multilevel.rs:183:37
    |
183 |         self.level_injectors[level].steal_batch_with_limit_and_pop(&self.local_queue, steal_limit)
    |                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: there is a method with a similar name: `steal_batch_and_pop`

https://github.com/tikv/agatedb/pull/192, It may be helpful for you

BusyJay commented 1 year ago

It means you are probably using an outdated version. The API exists on master branch and is not released yet.