Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(core): remove unused imports from storage import modules

Steven Enamakel8284eadd5e42
diff --git a/crates/openhuman-core/src/channels/runtime/startup/delivery_import.rs b/crates/openhuman-core/src/channels/runtime/startup/delivery_import.rs
index 10da286268..486d393921 100644
--- a/crates/openhuman-core/src/channels/runtime/startup/delivery_import.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup/delivery_import.rs
@@ -17,7 +17,6 @@
use std::collections::BTreeMap;
use std::path::Path;
-use std::sync::Arc;
use serde_json::{json, Value};
use sha2::Digest;
@@ -25,7 +24,7 @@ use tinychannels_bus::module_delivery::{
DeliveryQueueEntry, DeliveryTerminalResult, DELIVERY_PENDING_CAPACITY, DELIVERY_RECORD_BYTES,
DELIVERY_RESULT_CAPACITY, DELIVERY_RESULT_TTL_SECONDS,
};
-use tinystoragedrivers::{CollectionSpec, DocumentStore, ErrorKind, Precondition};
+use tinystoragedrivers::{CollectionSpec, ErrorKind, Precondition};
const LOG_PREFIX: &str = "[channel-delivery-import]";
const MODULE_ID: &str = "tinychannels";
diff --git a/crates/openhuman-core/src/modules/storage_import_support.rs b/crates/openhuman-core/src/modules/storage_import_support.rs
index 452aceee96..c35a1437dc 100644
--- a/crates/openhuman-core/src/modules/storage_import_support.rs
+++ b/crates/openhuman-core/src/modules/storage_import_support.rs
@@ -12,7 +12,7 @@ use std::sync::Arc;
use anyhow::{anyhow, Result};
use serde_json::Value;
use sha2::Digest;
-use tinystoragedrivers::{CollectionSpec, DocumentStore, ErrorKind, Precondition, ScopedStorage};
+use tinystoragedrivers::{DocumentStore, ErrorKind, Precondition, ScopedStorage};
/// The module's scope of the installed backend, or `None` when the process
/// runs without a storage backend (the module is then not using this storage).
diff --git a/crates/openhuman-core/src/modules/storage_import_tinybox.rs b/crates/openhuman-core/src/modules/storage_import_tinybox.rs
index 202cd691a3..2d7457510a 100644
--- a/crates/openhuman-core/src/modules/storage_import_tinybox.rs
+++ b/crates/openhuman-core/src/modules/storage_import_tinybox.rs
@@ -22,7 +22,7 @@
use std::path::Path;
use anyhow::{Context, Result};
-use serde_json::{json, Value};
+use serde_json::Value;
use tinystoragedrivers::{CollectionSpec, ScopedStorage};
use super::storage_grant_schemas::tinybox::{JAIL_INDEX_COLLECTION, MODULE_ID};
diff --git a/crates/openhuman-core/src/modules/storage_import_tinyjuice.rs b/crates/openhuman-core/src/modules/storage_import_tinyjuice.rs
index 3eb51f547c..494ea34351 100644
--- a/crates/openhuman-core/src/modules/storage_import_tinyjuice.rs
+++ b/crates/openhuman-core/src/modules/storage_import_tinyjuice.rs
@@ -24,7 +24,6 @@ use std::path::Path;
use std::time::{Duration, SystemTime};
use anyhow::{anyhow, Context, Result};
-use serde_json::json;
use tinystoragedrivers::{Capability, ScopedStorage};
use super::storage_grant_schemas::tinyjuice::{CCR_BLOB_PREFIX, MODULE_ID};
@@ -84,7 +83,6 @@ async fn import_into(
ttl: Option<Duration>,
now: SystemTime,
) -> Result<Outcome> {
- let docs = scoped.documents();
let marker = support::marker_id("ccr", root);
if support::already_imported(scoped, MARKER_COLLECTION, &marker).await? {
return Ok(Outcome::AlreadyDone);