Add some helpful comments

This commit is contained in:
Hirrolot 2022-04-13 12:11:02 +06:00
parent d6521662b4
commit c2bc945d27

View file

@ -100,7 +100,10 @@ pub struct Dispatcher<R, Err> {
handler: Arc<UpdateHandler<Err>>,
default_handler: Arc<DefaultHandler>,
// Tokio TX channel parts associated with chat IDs that consume updates sequentially.
workers: HashMap<i64, WorkerTx>,
// The default TX part that consume updates concurrently.
default_worker: Option<WorkerTx>,
error_handler: Arc<dyn ErrorHandler<Err> + Send + Sync>,