Skip to content

Prevent expired sessions from panicing#25

Merged
arminsabouri merged 2 commits into
payjoin:payjoin-v4from
benalleng:expired-session-panic
Aug 18, 2025
Merged

Prevent expired sessions from panicing#25
arminsabouri merged 2 commits into
payjoin:payjoin-v4from
benalleng:expired-session-panic

Conversation

@benalleng

Copy link
Copy Markdown

Closes #17

This should prevent panics when getting expired sessions from the directory.

@benalleng benalleng marked this pull request as draft August 18, 2025 16:14
@benalleng

Copy link
Copy Markdown
Author

Found another place where it panics I am going to try to address

@benalleng benalleng force-pushed the expired-session-panic branch from b4f68a2 to bb2131f Compare August 18, 2025 17:57
@benalleng benalleng marked this pull request as ready for review August 18, 2025 17:57
@benalleng benalleng requested a review from arminsabouri August 18, 2025 17:57

@arminsabouri arminsabouri left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ack

write!(f, "Failed to post original payjoin proposal: '{}'.", e)
}
Self::ReplayError(e) => {
write!(f, "Payjoin replay failed: '{}'.", e)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Nit:

Suggested change
write!(f, "Payjoin replay failed: '{}'.", e)
write!(f, "Payjoin session replay failed: '{}'.", e)

@arminsabouri arminsabouri merged commit b62fe49 into payjoin:payjoin-v4 Aug 18, 2025
1 of 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.

2 participants