Skip to content

refactor: use new styling for conversations crate without mod.rs#72

Open
kaichaosun wants to merge 2 commits intomainfrom
module-styling
Open

refactor: use new styling for conversations crate without mod.rs#72
kaichaosun wants to merge 2 commits intomainfrom
module-styling

Conversation

@kaichaosun
Copy link
Contributor

This is the follow up PR to clean the repo to use new module styling.

More context: #68

Copy link
Collaborator

@jazzz jazzz left a comment

Choose a reason for hiding this comment

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

👍

//! Chat-specific storage implementation.

mod migrations;
pub(crate) mod types;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Love that the visibility is scoped and not simply pub.

[Sand] One thing to watch out for is that this object is only accessible outside of the module via the submodule 'types' which bleeds internal abstractions outside of the module. If the type IdentityRecord is needed outside of the Storage module, a pub use statement would hide the internal details of where that is stored - making the module more self contained.

From what I can see IdentityRecord is only used within this module for now, so hard for me to see how it will be used. I'd check to see if pub is needed at all.

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