From 83d31ff8b99e8c154ed2210f000b27e4288b2453 Mon Sep 17 00:00:00 2001 From: bunnie Date: Mon, 24 Oct 2022 00:37:05 +0800 Subject: [PATCH] fix non-perf builds for pddb --- services/pddb/src/backend/dictionary.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/pddb/src/backend/dictionary.rs b/services/pddb/src/backend/dictionary.rs index dea4ef425..8156a7c90 100644 --- a/services/pddb/src/backend/dictionary.rs +++ b/services/pddb/src/backend/dictionary.rs @@ -1,11 +1,14 @@ -use crate::{api::*, FILE_ID_SERVICES_PDDB_SRC_DICTIONARY}; +use crate::api::*; use super::*; use std::num::NonZeroU32; use core::ops::{Deref, DerefMut}; use core::mem::size_of; use aes_gcm_siv::Aes256GcmSiv; +#[cfg(feature="perfcounter")] use perflib::{PERFMETA_STARTBLOCK, PERFMETA_NONE, PERFMETA_ENDBLOCK}; +#[cfg(feature="perfcounter")] +use crate::FILE_ID_SERVICES_PDDB_SRC_DICTIONARY; use std::collections::{HashMap, BinaryHeap, BTreeSet}; use std::io::{Result, Error, ErrorKind}; use bitfield::bitfield;