MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / concurrentFetcher

Struct concurrentFetcher

internal/metadata/concurrency_test.go:15–19  ·  view source on GitHub ↗

concurrentFetcher records the maximum number of in-flight Fetch calls so we can assert downloads actually run in parallel, and produces a deterministic one-skill repo so results are checkable.

Source from the content-addressed store, hash-verified

13// can assert downloads actually run in parallel, and produces a deterministic
14// one-skill repo so results are checkable.
15type concurrentFetcher struct {
16 inFlight atomic.Int32
17 maxSeen atomic.Int32
18 calls atomic.Int32
19}
20
21func (c *concurrentFetcher) Fetch(owner, repo, branch, dest string) (string, error) {
22 c.calls.Add(1)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected