Skip to content

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Oct 2, 2025

A stopgap solution that should hopefully speed up response times for the upload service.

@alanshaw alanshaw requested a review from travis as a code owner October 2, 2025 12:20
@alanshaw alanshaw requested a review from a team October 2, 2025 13:06
Copy link
Member

@Peeja Peeja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parallel parking

Nice!

if (report.error) return report
const { provider, space, size } = report.ok
/** @type {API.SpaceUsage} */
bySpace.spaces[space] = bySpace.spaces[space] ?? { total: 0, providers: {} }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Even better:

Suggested change
bySpace.spaces[space] = bySpace.spaces[space] ?? { total: 0, providers: {} }
bySpace.spaces[space] ??= { total: 0, providers: {} }

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WHAT THE HECK IS THAT

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