This PR refactors sbot.rs into multiple files contained with an sbot folder,
about
friends
get_subset
history_stream
invite
publish
sbot (contains initialization code)
Organizing the code in this way has the benefit that it continues to be extensible as we add more functionality.
I re-exported all the functions via mod.rs, so that for the library user, their API is identical between this and the previous organization.
A pattern to consider.
This PR refactors sbot.rs into multiple files contained with an sbot folder,
- about
- friends
- get_subset
- history_stream
- invite
- publish
- sbot (contains initialization code)
Organizing the code in this way has the benefit that it continues to be extensible as we add more functionality.
I re-exported all the functions via mod.rs, so that for the library user, their API is identical between this and the previous organization.
A pattern to consider.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR refactors sbot.rs into multiple files contained with an sbot folder,
Organizing the code in this way has the benefit that it continues to be extensible as we add more functionality.
I re-exported all the functions via mod.rs, so that for the library user, their API is identical between this and the previous organization.
A pattern to consider.
Pull request closed