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

Method canRetryObject

tq/transfer_queue.go:1045–1052  ·  view source on GitHub ↗

canRetryObject returns whether the given error is retriable for the object given by "oid". If the an OID has met its retry limit, then it will not be able to be retried again. If so, canRetryObject returns whether or not that given error "err" is retriable.

(oid string, err error)

Source from the content-addressed store, hash-verified

1043// able to be retried again. If so, canRetryObject returns whether or not that
1044// given error "err" is retriable.
1045func (q *TransferQueue) canRetryObject(oid string, err error) bool {
1046 if count, ok := q.rc.CanRetry(oid); !ok {
1047 tracerx.Printf("tq: refusing to retry %q, too many retries (%d)", oid, count)
1048 return false
1049 }
1050
1051 return q.canRetry(err)
1052}
1053
1054func (q *TransferQueue) canRetryObjectLater(oid string, err error) (time.Time, bool) {
1055 if count, ok := q.rc.CanRetry(oid); !ok {

Callers 2

handleTransferResultMethod · 0.95

Calls 2

canRetryMethod · 0.95
CanRetryMethod · 0.80

Tested by

no test coverage detected