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

Function resolve

libatomic/tests/local_sync_test.rs:221–231  ·  view source on GitHub ↗
(service: &LocalService, path: &Path)

Source from the content-addressed store, hash-verified

219}
220
221async fn resolve(service: &LocalService, path: &Path) -> proto::RepositoryRef {
222 let response: proto::ResolveRepositoryResponse = invoke(
223 service,
224 "/atomic.DaemonService/ResolveRepository",
225 &proto::ResolveRepositoryRequest {
226 path: path.display().to_string(),
227 },
228 )
229 .await;
230 response.repository.unwrap()
231}
232
233async fn record(service: &LocalService, repository: &proto::RepositoryRef, message: &str) -> Hash {
234 let response: proto::RecordResponse = invoke(

Calls 3

displayMethod · 0.80
invokeFunction · 0.70
unwrapMethod · 0.45

Tested by

no test coverage detected