Skip to content

Back builders with Arc<Mutex> instead of Rc<Cell> - #322

Merged
alexliesenfeld merged 3 commits into
owned-builders-sendfrom
builders-arc-mutex
Oct 4, 2026
Merged

alexliesenfeld merged 3 commits into
owned-builders-sendfrom
builders-arc-mutex

Conversation

@FalkWoldmann

Copy link
Copy Markdown
Member

Follow-up to #320, stacked on its branch.

With Arc<Mutex<_>> the builders are Send + Sync, so the setup futures are Send without the sync blocks in server.rs, and update_cell's take-and-restore guard goes away since a lock never moves the value out. Poisoning is ignored, so a caught setter panic still keeps earlier values.

Also makes RecordingRuleBuilder::config pub(crate). Its type was never nameable outside the crate, so I don't think anyone relies on it. The two tests that built a RecordingRuleBuilder by hand are dropped, and the panic test moved into a unit test in proxy.rs.

@alexliesenfeld

alexliesenfeld commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

Thanks. Will merge.

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