refactor(client): remove redundant timestamp parameter from close method
This commit is contained in:
1 parent
023e85741a
commit
d8b580a19c
13 files changed
+69
-102
No files matched your search
@@ -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(),
|
||||
}])
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user