Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/openshell-supervisor-middleware/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ impl OnError {
}
}

#[derive(Debug, Clone)]
#[derive(Debug, Clone, PartialEq)]
pub struct ChainEntry {
pub name: String,
pub implementation: String,
Expand Down
5 changes: 5 additions & 0 deletions crates/openshell-supervisor-network/src/l7/relay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3629,6 +3629,11 @@ where
let mut response_selection = None;
let req = if let Some(engine) = middleware_engine {
let input = middleware_network_input(ctx);
// Give a revalidating guard the chance to re-pin through an
// unrelated reload before comparing raw generation numbers.
if generation_guard.is_stale() {
return Ok(());
}
let (chain, generation) = engine.query_middleware_chain_with_generation(&input)?;
if generation != generation_guard.captured_generation() {
return Ok(());
Expand Down
Loading
Loading