Radish alpha
r
rad:zwTxygwuz5LDGBq255RA2CbNGrz8
Radicle CI broker
Radicle
Git
refactor(src/queueproc.rs): simplify thread structure
Merged liw opened 6 months ago

Change the queue processing to spawn a new thread for each new event to process (run adapters for).

Previously we had N long-lived threads, where N is set in the configuration setting concurrent_adapters. This is awkward if we want to reload configuration, which is an open feature request.

The new structure is also a lot simpler, which hopefully means it’ll be more reliable.

liw opened with revision ec247266 on base 5379b676 +180 -267 6 months ago

Change the queue processing to spawn a new thread for each new event to process (run adapters for).

Previously we had N long-lived threads, where N is set in the configuration setting concurrent_adapters. This is awkward if we want to reload configuration, which is an open feature request.

The new structure is also a lot simpler, which hopefully means it’ll be more reliable.

liw pushed revision 2 5ce3475b on base 5379b676 +224 -314 6 months ago

chore: format code

Because we now use edition 2024, the default formatting by rustfmt is different. Update the formatting, without any other changes, by running cargo fmt.

liw merged revision 5ce3475b at 6bcf8140 6 months ago