Update src/dispatching/dialogue/storage/redis_storage.rs

Co-authored-by: Waffle Lapkin <waffle.lapkin@gmail.com>
This commit is contained in:
Hirrolot 2021-03-28 22:18:47 -07:00 committed by GitHub
parent 701dcbcb68
commit ca60e52f43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,7 @@ where
Box::pin(async move {
let dialogue =
self.serializer.serialize(&dialogue).map_err(RedisStorageError::SerdeError)?;
self.conn.lock().await.getset::<_, Vec<u8>, Option<Vec<u8>>>(chat_id, dialogue).await?;
self.conn.lock().await.set::<_, Vec<u8>, Option<Vec<u8>>>(chat_id, dialogue).await?;
Ok(())
})
}