diff options
| author | sigoden <sigoden@gmail.com> | 2024-03-06 01:46:47 +0000 |
|---|---|---|
| committer | sigoden <sigoden@gmail.com> | 2024-03-06 01:46:47 +0000 |
| commit | 46cb320aa594c41203f0daa67d3e11594e7a3917 (patch) | |
| tree | 99c9d736fa3eec73bda21d042c556166597fea2b /src/config | |
| parent | b82ae88a15debd83d646c43755a50678ca4d3891 (diff) | |
| download | aichat-46cb320aa594c41203f0daa67d3e11594e7a3917.tar.gz | |
chore: spell check
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index 909e751..ffdb942 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -682,9 +682,9 @@ impl Config { } pub fn should_compress_session(&mut self) -> bool { - if let Some(sesion) = self.session.as_mut() { - if sesion.need_compress(self.compress_threshold) { - sesion.compressing = true; + if let Some(session) = self.session.as_mut() { + if session.need_compress(self.compress_threshold) { + session.compressing = true; return true; } } |
