Skip to content

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

refactor(task_sources): remove unused storage error wrapper

Steven Enamakel4bfc66da344d
diff --git a/crates/openhuman-core/src/integrations/task_sources/store_documents.rs b/crates/openhuman-core/src/integrations/task_sources/store_documents.rs
index 9d33902c9d..6ba76ec179 100644
--- a/crates/openhuman-core/src/integrations/task_sources/store_documents.rs
+++ b/crates/openhuman-core/src/integrations/task_sources/store_documents.rs
@@ -26,7 +26,7 @@ use super::store::{apply_patch, content_hash, IngestedTaskRef};
use super::types::{FetchReason, FilterSpec, ProviderSlug, SourceTarget, TaskSource, TaskSourcePatch};
use crate::integrations::composio::providers::NormalizedTask;
use crate::storage::documents::{compare_and_swap, text, Repo};
-use crate::storage::{DocumentStoreExt, ScopedStorage, StorageError};
+use crate::storage::{DocumentStoreExt, ScopedStorage};
const SOURCES: &str = "task_sources";
const INGESTED: &str = "ingested_tasks";
@@ -298,15 +298,6 @@ impl Docs {
}
}
-impl From<StorageError> for TaskSourceStorageError {
- fn from(error: StorageError) -> Self {
- Self(error)
- }
-}
-
-/// Unused marker kept private; storage errors surface through [`Repo::run`].
-struct TaskSourceStorageError(#[allow(dead_code)] StorageError);
-
#[cfg(test)]
#[path = "store_documents_tests.rs"]
mod tests;