Skip to content

Commit

Permalink
fix(shadowsocks): thiserror v2 ProtocolError fix embiguous
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Nov 16, 2024
1 parent b87d55e commit a5da343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/shadowsocks/src/relay/tcprelay/aead_2022.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub enum ProtocolError {
DecryptLengthError,
#[error("invalid stream type, expecting {0:#x}, but found {1:#x}")]
InvalidStreamType(u8, u8),
#[error("invalid timestamp {0} - now {1} = {}", *.0 as i64 - *.1 as i64)]
#[error("invalid timestamp {0} - now {1} = {ts_diff}", ts_diff = *.0 as i64 - *.1 as i64)]
InvalidTimestamp(u64, u64),
}

Expand Down

0 comments on commit a5da343

Please sign in to comment.