MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / newRetryCounter

Function newRetryCounter

tq/transfer_queue.go:34–40  ·  view source on GitHub ↗

newRetryCounter instantiates a new *retryCounter.

()

Source from the content-addressed store, hash-verified

32
33// newRetryCounter instantiates a new *retryCounter.
34func newRetryCounter() *retryCounter {
35 return &retryCounter{
36 MaxRetries: defaultMaxRetries,
37 MaxRetryDelay: defaultMaxRetryDelay,
38 count: make(map[string]int),
39 }
40}
41
42// Increment increments the number of retries for a given OID and returns the
43// new value. It is safe to call across multiple goroutines.

Calls

no outgoing calls