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

Method duplicate

libatomic/tests/hook_health_dispatch.rs:19–26  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

17
18impl Dispatch {
19 fn duplicate(&self) -> Self {
20 match self {
21 Self::Local(service) => Self::Local(ProvenanceImpl {
22 state: service.state.clone(),
23 }),
24 Self::Rpc(client) => Self::Rpc(client.clone()),
25 }
26 }
27
28 async fn append(&mut self, request: libatomic::atomic::AppendHookLogRequest) -> u64 {
29 match self {

Calls 2

LocalClass · 0.85
cloneMethod · 0.45

Tested by

no test coverage detected