You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(acp-nats): per-subject structs with typed parameters
Each NATS subject is its own struct. Constructors accept AcpPrefix and
AcpSessionId instead of raw strings — no primitive obsession, no way
to pass unvalidated values. Passing the wrong subject to the wrong
function is a compile error.
Also fixes a potential panic in publish_session_ready where an
unvalidated SessionId was passed to AcpSessionId::new().unwrap().
Now gracefully logs and returns on invalid session IDs.
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
0 commit comments