Skip to content

Add dynamic limit settings - #2

Merged
vearutop merged 3 commits into
masterfrom
dynamic-limits
Oct 21, 2026
Merged

vearutop merged 3 commits into
masterfrom
dynamic-limits

Conversation

@vearutop

Copy link
Copy Markdown
Member

No description provided.

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Lines Of Code

Language Files Lines Code Comments Blanks Complexity Bytes
Go 1 529 (+95) 354 (+62) 56 (+10) 119 (+23) 94 (+14) 12.7K (+2.5K)
Go (test) 4 216 (+29) 174 (+21) 3 (+3) 39 (+5) 19 (+2) 5K (+1.1K)
YAML 6 398 344 19 35 0 12.1K (+3B)

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Go API Changes

# github.com/bool64/throttle
## compatible changes
(*Throttle).Limits: added
(*Throttle).SetLimits: added
ErrInvalidLimits: added
Limits: added

# summary
Inferred base version: v0.0.1
Suggested version: v0.1.0

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Unit Test Coverage

total: (statements) 86.7%
changed lines: (statements) 98.2%

Coverage of changed lines
File Function Coverage
Total 98.2%
throttle.go 98.2%
throttle.go:108 NewThrottle 100.0%
throttle.go:277 slower 100.0%
throttle.go:311 faster 100.0%
throttle.go:351 block 100.0%
throttle.go:375 Limits 100.0%
throttle.go:379 limits 100.0%
throttle.go:430 enforceConcurrency 100.0%
throttle.go:489 Concurrency 100.0%
throttle.go:396 SetLimits 91.7%
Coverage diff with base branch
File Function Base Coverage Current Coverage
Total 81.8% 86.7% (+4.9%)
throttle.go Concurrency 0.0% 100.0% (+100.0%)
throttle.go Limits no function 100.0%
throttle.go NewThrottle 91.4% 100.0% (+8.6%)
throttle.go SetLimits no function 93.3%
throttle.go block no function 100.0%
throttle.go enforceConcurrency no function 100.0%
throttle.go faster 95.7% 100.0% (+4.3%)
throttle.go limits no function 100.0%

@vearutop
vearutop merged commit 6b5eff1 into master Oct 21, 2026
5 checks passed
@vearutop
vearutop deleted the dynamic-limits branch October 21, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant