mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Move storage
back to dispatching
This commit is contained in:
parent
5909e48e11
commit
b4aa3a4504
8 changed files with 9 additions and 9 deletions
|
@ -148,6 +148,7 @@ mod dialogue_dispatcher_handler;
|
|||
mod dialogue_stage;
|
||||
mod dialogue_with_cx;
|
||||
mod get_chat_id;
|
||||
mod storage;
|
||||
mod transition;
|
||||
|
||||
pub use dialogue_dispatcher::DialogueDispatcher;
|
||||
|
@ -165,11 +166,9 @@ pub use teloxide_macros::Transition;
|
|||
|
||||
#[cfg(feature = "redis-storage")]
|
||||
#[cfg_attr(all(docsrs, feature = "nightly"), doc(cfg(feature = "redis-storage")))]
|
||||
pub use crate::dispatching2::dialogue::{RedisStorage, RedisStorageError};
|
||||
pub use storage::{RedisStorage, RedisStorageError};
|
||||
|
||||
#[cfg(feature = "sqlite-storage")]
|
||||
pub use crate::dispatching2::dialogue::{SqliteStorage, SqliteStorageError};
|
||||
pub use storage::{SqliteStorage, SqliteStorageError};
|
||||
|
||||
pub use crate::dispatching2::dialogue::{
|
||||
serializer, InMemStorage, InMemStorageError, Serializer, Storage, TraceStorage,
|
||||
};
|
||||
pub use storage::{serializer, InMemStorage, InMemStorageError, Serializer, Storage, TraceStorage};
|
||||
|
|
|
@ -87,18 +87,19 @@
|
|||
|
||||
#[cfg(feature = "redis-storage")]
|
||||
#[cfg_attr(all(docsrs, feature = "nightly"), doc(cfg(feature = "redis-storage")))]
|
||||
pub use storage::{RedisStorage, RedisStorageError};
|
||||
pub use crate::dispatching::dialogue::{RedisStorage, RedisStorageError};
|
||||
|
||||
#[cfg(feature = "sqlite-storage")]
|
||||
pub use storage::{SqliteStorage, SqliteStorageError};
|
||||
pub use crate::dispatching::dialogue::{SqliteStorage, SqliteStorageError};
|
||||
|
||||
pub use crate::dispatching::dialogue::{
|
||||
serializer, InMemStorage, InMemStorageError, Serializer, Storage, TraceStorage,
|
||||
};
|
||||
pub use get_chat_id::GetChatId;
|
||||
pub use storage::{serializer, InMemStorage, InMemStorageError, Serializer, Storage, TraceStorage};
|
||||
|
||||
use std::{marker::PhantomData, sync::Arc};
|
||||
|
||||
mod get_chat_id;
|
||||
mod storage;
|
||||
|
||||
/// A handle for controlling dialogue state.
|
||||
#[derive(Debug)]
|
||||
|
|
Loading…
Add table
Reference in a new issue