Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions ceres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ rand = { workspace = true, features = ["thread_rng"] }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
sha1 = { workspace = true }
sha2 = { workspace = true, optional = true }
tempfile = { workspace = true, optional = true }
thiserror = { workspace = true, optional = true }
tracing = { workspace = true }
uuid = { workspace = true, features = ["v4"] }
reqwest = { workspace = true, features = ["json", "stream"] }
Expand All @@ -43,9 +46,11 @@ tokio-util = { workspace = true }
rkyv = { workspace = true }

[features]
fastcdc = ["dep:sha2", "dep:tempfile", "dep:thiserror"]
migrate = ["jupiter/migrate"]

[dev-dependencies]
sea-orm = { workspace = true }
axum = { workspace = true }
jupiter-migrate = { workspace = true }
orion-client = { workspace = true }
Expand Down
5 changes: 5 additions & 0 deletions ceres/src/application/api_service/mono/lfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ use crate::lfs::{
};

impl LfsApplicationService {
#[cfg(feature = "fastcdc")]
pub fn media_service(&self) -> &jupiter::service::lfs_service::LfsService {
&self.ctx.storage().lfs_service
}

pub async fn lfs_retrieve_lock(&self, query: LockListQuery) -> Result<LockList, GitLFSError> {
handler::lfs_retrieve_lock(self.ctx.storage().lfs_db_storage(), query).await
}
Expand Down
Loading