Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size function for BlobList #68

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Size function for BlobList #68

merged 1 commit into from
Feb 22, 2024

Conversation

nvaatstra
Copy link
Contributor

Description:
PR adds a Size() function to BlobList

Motivation:
Allows projects which use Simpleblob to access the total size of all blobs in a BlobList (in my case to store the total size of a specific BlobList as a metric in Prometheus for monitoring purposes)

Includes a basic test to ensure the size is correct (also for the existing Len() as this can be tested using the same data)

@wojas wojas merged commit 2d5a347 into PowerDNS:main Feb 22, 2024
2 checks passed
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.

2 participants