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

Function resolve

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

Source from the content-addressed store, hash-verified

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

Calls 3

displayMethod · 0.80
invokeFunction · 0.70
unwrapMethod · 0.45

Tested by

no test coverage detected