MCPcopy
hub / github.com/git-lfs/git-lfs / toAdapterCfg

Method toAdapterCfg

tq/transfer_queue.go:957–966  ·  view source on GitHub ↗
(e lfshttp.Endpoint)

Source from the content-addressed store, hash-verified

955}
956
957func (q *TransferQueue) toAdapterCfg(e lfshttp.Endpoint) AdapterConfig {
958 apiClient := q.manifest.APIClient()
959 concurrency := q.manifest.ConcurrentTransfers()
960
961 return &adapterConfig{
962 concurrentTransfers: concurrency,
963 apiClient: apiClient,
964 remote: q.remote,
965 }
966}
967
968// Wait waits for the queue to finish processing all transfers. Once Wait is
969// called, Add will no longer add transfers to the queue. Any failed

Callers 1

ensureAdapterBegunMethod · 0.95

Calls 2

APIClientMethod · 0.65
ConcurrentTransfersMethod · 0.65

Tested by

no test coverage detected