Rewire marketplace.rs handlers to use ServiceProvider traits #28
Labels
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coopcloud_code/projectmycelium_marketplace#28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
marketplace.rs has ~40 direct service bypasses including:
UserService::builder()foradd_user_activity()SliceAssignmentService::builder()for assignment CRUDSliceRentalService::builder()for slice rentalsCurrencyService::new()(utility, no trait needed)Product::builder()(model constructors, not bypasses)Complexity
marketplace.rs has nested
pub async fndefinitions insideif letblocks. These inner functions have separate scopes and needservicesadded to their parameters. Key inner functions:create_slice_assignment()get_slice_assignments()update_slice_assignment()delete_slice_assignment()deploy_slice_assignment()Dependencies
Scope
~24 real rewirings (excluding CurrencyService and model builders)