Skip to content

impl PUBLISH/SUBSCRIBE#229

Open
t-gazzy wants to merge 104 commits intofeat/namespace-pub-subfrom
feat/pub-sub
Open

impl PUBLISH/SUBSCRIBE#229
t-gazzy wants to merge 104 commits intofeat/namespace-pub-subfrom
feat/pub-sub

Conversation

@t-gazzy
Copy link
Collaborator

@t-gazzy t-gazzy commented Oct 27, 2025

概要

PUBLISH/SUBSCRIBEを実装

@t-gazzy t-gazzy changed the title [WIP] Feat/pub sub impl PUBLISH/SUBSCRIBE Feb 9, 2026
publishers: tokio::sync::Mutex<HashMap<SessionId, Arc<dyn Publisher>>>,
sessions: DashMap<SessionId, Arc<dyn Session>>,
publishers: DashMap<SessionId, Arc<dyn Publisher>>,
subscriber_repo: SubscriberRepository,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

構造体がpublishersと異なるので合わせて欲しい

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

こちらで併せて対応しました
#229 (comment)

@@ -14,17 +13,17 @@ use crate::modules::{

pub(crate) struct SessionRepository {
thread_manager: ThreadManager,
sessions: tokio::sync::Mutex<HashMap<SessionId, Arc<dyn Session>>>,
publishers: tokio::sync::Mutex<HashMap<SessionId, Arc<dyn Publisher>>>,
sessions: DashMap<SessionId, Arc<dyn Session>>,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sessionsとpublishers/subscribersは親子関係だからまとめられないか整理してほしい

Copy link
Collaborator Author

@t-gazzy t-gazzy Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sessionのみを管理するようにしました
addの時点で生成して個別に管理する必要は特にないかなという判断をしました

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants