MCPcopy
hub / github.com/cloudreve/cloudreve / WithBackoffFactor

Function WithBackoffFactor

pkg/queue/options.go:60–64  ·  view source on GitHub ↗

WithBackoffFactor set backoff factor

(f float64)

Source from the content-addressed store, hash-verified

58
59// WithBackoffFactor set backoff factor
60func WithBackoffFactor(f float64) Option {
61 return OptionFunc(func(q *options) {
62 q.backoffFactor = f
63 })
64}
65
66// WithBackoffMaxDuration set backoff max duration
67func WithBackoffMaxDuration(d time.Duration) Option {

Callers 6

ThumbQueueMethod · 0.92
MediaMetaQueueMethod · 0.92
IoIntenseQueueMethod · 0.92
RemoteDownloadQueueMethod · 0.92
EntityRecycleQueueMethod · 0.92
SlaveQueueMethod · 0.92

Calls 1

OptionFuncFuncType · 0.70

Tested by

no test coverage detected