huskies: merge 1169 story Gateway pulls signed artifacts from a release channel into its local store
This commit is contained in:
@@ -94,6 +94,14 @@ pub struct BotContext {
|
||||
/// The `new project` command writes here so HTTP handlers see the new entry
|
||||
/// immediately without requiring a gateway restart. `None` in standalone mode.
|
||||
pub gateway_projects_store: Option<Arc<RwLock<BTreeMap<String, ProjectEntry>>>>,
|
||||
/// In gateway mode: shared configured release channels (story 1169).
|
||||
///
|
||||
/// Read by the `pull <channel>` command to resolve a channel's
|
||||
/// `base_url`, pinned `pubkey`, and optional `bearer_token`. `None` in
|
||||
/// standalone mode.
|
||||
pub gateway_channels_store: Option<
|
||||
Arc<RwLock<BTreeMap<String, crate::service::gateway::config::ReleaseChannelConfig>>>,
|
||||
>,
|
||||
/// Bounded FIFO set of already-handled incoming event IDs.
|
||||
///
|
||||
/// The Matrix sync loop can replay events on reconnect. This set ensures
|
||||
@@ -315,6 +323,7 @@ mod tests {
|
||||
)),
|
||||
gateway_active_project,
|
||||
gateway_projects_store,
|
||||
gateway_channels_store: None,
|
||||
handled_incoming_event_ids: Arc::new(TokioMutex::new(SeenEventIds::new(
|
||||
SEEN_EVENT_IDS_CAP,
|
||||
))),
|
||||
|
||||
Reference in New Issue
Block a user