Add feature guard for import statement
Adds a `sqlite` feature guard for an import statement in the `add_event`
Diesel operation in the `AdminServiceStore`. The
`AdminServiceEventModel` is only used by the `add_event` operation
implemented for a SQLite backend.
@@ -21,13 +21,15 @@ use diesel::{dsl::insert_into, prelude::*};
use super::AdminServiceStoreOperations;
use crate::admin::service::messages;
+#[cfg(feature = "sqlite")]
+use crate::admin::store::diesel::models::AdminServiceEventModel;
use crate::admin::store::{
diesel::{
models::{
AdminEventCircuitProposalModel, AdminEventProposedCircuitModel,
AdminEventProposedNodeEndpointModel, AdminEventProposedNodeModel,
AdminEventProposedServiceArgumentModel, AdminEventProposedServiceModel,
- AdminEventVoteRecordModel, AdminServiceEventModel, NewAdminServiceEventModel,
+ AdminEventVoteRecordModel, NewAdminServiceEventModel,
},
schema::{
admin_event_circuit_proposal, admin_event_proposed_circuit, admin_event_proposed_node,
