MCPcopy Create free account
hub / github.com/compozy/agh / normalizeForceRecoveryOptions

Function normalizeForceRecoveryOptions

internal/task/force_ops.go:36–41  ·  view source on GitHub ↗
(options ForceRecoveryOptions)

Source from the content-addressed store, hash-verified

34}
35
36func normalizeForceRecoveryOptions(options ForceRecoveryOptions) ForceRecoveryOptions {
37 if options.RateLimitPerMinute <= 0 {
38 options.RateLimitPerMinute = DefaultForceRunRateLimitPerMinute
39 }
40 return options
41}
42
43func (l *forceRunRateLimiter) allow(actor ActorIdentity, taskID string, now time.Time, limit int) bool {
44 if l == nil || limit <= 0 {

Callers 1

NewManagerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected