refactor(client): remove redundant timestamp parameter from close method

This commit is contained in:
Nils Andreas Svee committed 2026-05-10 23:47:46 +07:00
1 parent 023e85741a
commit d8b580a19c
13 files changed
+69 -102

No files matched your search

+2 -2
View File
@@ -127,7 +127,7 @@ impl Client {
}
}
pub fn close(&mut self, now: ClientTimestamp) -> Result<Vec<ClientEvent>, ClientError> {
pub fn close(&mut self) -> Result<Vec<ClientEvent>, ClientError> {
let token = match self.phase {
ClientPhase::Open { token } => token,
ClientPhase::Closed => return Err(ClientError::AlreadyClosed),
@@ -149,7 +149,7 @@ impl Client {
Ok(vec![ClientEvent::SessionClosed {
remote: self.remote,
token,
at: now,
at: ClientTimestamp::now(),
}])
}