Skip to content

[sql-15] sessions: various functional options for NewSession #984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 28, 2025

Conversation

ellemouton
Copy link
Member

@ellemouton ellemouton commented Feb 20, 2025

For a cleaner interface, adjust the NewSession method of the Session
store such that all optional arguments are functional options.

We also now will error out in AddAutopilotSession if the caller specifies privacy map flags without actually
activating the privacy mapper.

@ellemouton ellemouton self-assigned this Feb 20, 2025
@ellemouton ellemouton added the no-changelog This PR is does not require a release notes entry label Feb 20, 2025
Error out if an AddAutopilotSession call has privacy map flags specified
but does not activate the privacy mapper.
@ellemouton ellemouton changed the title [sql-15] sessions: activate normal sessions in one go & add various functional options for NewSession [sql-15] sessions: various functional options for NewSession Feb 27, 2025
Copy link
Contributor

@ViktorTigerstrom ViktorTigerstrom left a comment

Choose a reason for hiding this comment

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

Nice, this is much cleaner than before 🚀!

For a cleaner interface, adjust the NewSession method of the Session
store such that all optional arguments are functional options.
Copy link
Contributor

@bitromortac bitromortac left a comment

Choose a reason for hiding this comment

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

Cool, LGTM 🧹

@ellemouton ellemouton merged commit ee46094 into lightninglabs:master Feb 28, 2025
21 checks passed
@ellemouton ellemouton deleted the sql15Sessions7 branch February 28, 2025 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog This PR is does not require a release notes entry sql-ize
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants