Skip to content

Commit a9cef3f

Browse files
authored
Limit visibility of id method for SessionContext to the crate only (payjoin#713)
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, payjoin#698 (comment)
2 parents a5dba58 + abf8ebb commit a9cef3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

payjoin/src/receive/v2/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl SessionContext {
5858
}
5959

6060
/// The per-session identifier
61-
pub fn id(&self) -> ShortId {
61+
pub(crate) fn id(&self) -> ShortId {
6262
sha256::Hash::hash(&self.s.public_key().to_compressed_bytes()).into()
6363
}
6464
}

0 commit comments

Comments
 (0)