Skip to content

Comments

Move state-sync related methods to a separate file#1606

Merged
bobbinth merged 1 commit intonextfrom
bobbin-sync-state
Jan 28, 2026
Merged

Move state-sync related methods to a separate file#1606
bobbinth merged 1 commit intonextfrom
bobbin-sync-state

Conversation

@bobbinth
Copy link
Contributor

This small PR moves sync-related methods from the State struct in the store to a separate file. The main motivation is to make the mod.rs file a bit smaller and easier to navigate. No actual code changes were made here.

@bobbinth bobbinth added the no changelog This PR does not require an entry in the `CHANGELOG.md` file label Jan 28, 2026
Comment on lines +39 to +40
#[instrument(level = "debug", target = COMPONENT, skip_all, ret(level = "debug"), err)]
pub async fn sync_notes(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Some methods here are instrumented, while others are not. I couldn't tell why that's the case - but kept things as they were.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah some still have them at level=debug which for all purposes means they never get logged in production. We need to figure an approach here still.

Copy link
Collaborator

@Mirko-von-Leipzig Mirko-von-Leipzig left a comment

Choose a reason for hiding this comment

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

Long(er) term it would be nice to move to something like file-per-method implementations

@bobbinth bobbinth merged commit 65bc296 into next Jan 28, 2026
8 checks passed
@bobbinth bobbinth deleted the bobbin-sync-state branch January 28, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants