Skip to content

Limit visibility of id method for SessionContext to the crate only#713

Merged
spacebear21 merged 1 commit intopayjoin:masterfrom
benalleng:short-id-pub-crate
May 22, 2025
Merged

Limit visibility of id method for SessionContext to the crate only#713
spacebear21 merged 1 commit intopayjoin:masterfrom
benalleng:short-id-pub-crate

Conversation

@benalleng
Copy link
Collaborator

@benalleng benalleng commented May 22, 2025

Because SessionContext itself is limited in visibility to the crate this id method should also be limited to crate visibility.

Based on the conversation linked here, #698 (comment)

Because SessionContext itself is limited in visibility to the crate this
id method should also be lmited to crate visibility.
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 15187890448

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 83.525%

Totals Coverage Status
Change from base Build 15169328807: 0.0%
Covered Lines: 5947
Relevant Lines: 7120

💛 - Coveralls

@benalleng
Copy link
Collaborator Author

benalleng commented May 22, 2025

Is this blocked until we get SessionEvent log because of this?

See BullBitcoin source id() usage. receiver.id() is used to identify the saved thing in the DB downstream until we get SessionEventLog. That's why this is pub.

Seeing as we have now removed the Receiver::id() method as of 67a174d

@DanGould
Copy link
Contributor

i don't think so. receiver.id() is not session_context.id()

Copy link
Collaborator

@nothingmuch nothingmuch left a comment

Choose a reason for hiding this comment

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

utACK

Copy link
Collaborator

@spacebear21 spacebear21 left a comment

Choose a reason for hiding this comment

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

ACK

@spacebear21 spacebear21 merged commit a9cef3f into payjoin:master May 22, 2025
7 checks passed
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.

5 participants