MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / request

Function request

libatomic/src/daemon/services_maintenance/compact/tests.rs:6–14  ·  view source on GitHub ↗
(handle: &crate::daemon::state::RepoHandle)

Source from the content-addressed store, hash-verified

4const DATA: TableDefinition<u64, &[u8]> = TableDefinition::new("compaction_data");
5
6fn request(handle: &crate::daemon::state::RepoHandle) -> Request<CompactDatabaseRequest> {
7 Request::new(CompactDatabaseRequest {
8 repository: Some(handle.repository_ref()),
9 meta: Some(crate::atomic::RequestMeta {
10 request_id: uuid::Uuid::new_v4().to_string(),
11 observed_at: None,
12 }),
13 })
14}
15
16#[tokio::test]
17async fn busy_reader_and_writer_time_out_then_retry_succeeds() {

Calls 1

repository_refMethod · 0.80

Tested by

no test coverage detected