Closed tisonkun closed 1 year ago
This can be related to https://github.com/tikv/raft-rs/issues/35.
pub(crate) should be enough.
pub(crate)
BTW, some methods are pub only for accessing in benches. I don't know if conditional export tech like below is worthy:
#[cfg(benches)] pub fn bench_campaign(&mut self, campaign_type: &'static [u8]) { self.campaign(campaign_type) } fn campaign(&mut self, campaign_type: &'static [u8]) {
#[cfg(benches)] has no magic over a normal feature that we manually turn on when running benches.
#[cfg(benches)]
Closing...
TiKV depends on its pub.
pub
This can be related to https://github.com/tikv/raft-rs/issues/35.
pub(crate)
should be enough.BTW, some methods are pub only for accessing in benches. I don't know if conditional export tech like below is worthy:
#[cfg(benches)]
has no magic over a normal feature that we manually turn on when running benches.