Skip to content

Commit

Permalink
fix: action_status buf_size limited to 1
Browse files Browse the repository at this point in the history
To be compatible with backend, will be reverted once fix is deployed.
  • Loading branch information
Devdutt Shenoi committed Sep 26, 2023
1 parent 1107824 commit 6be8fc9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion uplink/src/base/bridge/actions_lane.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,12 @@ impl ActionsBridge {
let (ctrl_tx, ctrl_rx) = bounded(1);

let mut streams_config = HashMap::new();
streams_config.insert("action_status".to_owned(), config.action_status.clone());
let mut action_status = config.action_status.clone();
if action_status.buf_size > 1 {
warn!("Buffer size of `action_status` stream restricted to 1")
}
action_status.buf_size = 1;
streams_config.insert("action_status".to_owned(), action_status);
let mut streams = Streams::new(config.clone(), package_tx, metrics_tx);
streams.config_streams(streams_config);

Expand Down

0 comments on commit 6be8fc9

Please sign in to comment.