yatp icon indicating copy to clipboard operation
yatp copied to clipboard

cargo.toml TODO makes other projects compile error

Open Tianion opened this issue 2 years ago • 1 comments

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

Tianion avatar Feb 28 '23 03:02 Tianion

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

BusyJay avatar Feb 28 '23 03:02 BusyJay