Radish alpha
r
rad:zwTxygwuz5LDGBq255RA2CbNGrz8
Radicle CI broker
Radicle
Git
add concurrent adapters
Merged liw opened 11 months ago

One adapter at a time per repository.

Not all commits in this patch build or pass tests separately.

liw opened with revision 94375349 on base 22451b4b +994 -753 11 months ago

One adapter at a time per repository.

Not all commits in this patch build or pass tests separately.

liw pushed revision 2 2966f9ca on base d90b609b +994 -753 11 months ago

rebase on main

liw pushed revision 3 a60613a0 on base d90b609b +1006 -753 11 months ago

refactor: use a type to capture non-zero count of concurrent adapters

Signed-off-by: Lars Wirzenius liw@liw.fi

liw pushed revision 4 67c56ed0 on base d90b609b +999 -753 11 months ago

refactor: use more idiomatic Rust to check result of operation

Signed-off-by: Lars Wirzenius liw@liw.fi

fix(src/queueproc.rs): rewrite to avoid unimplemented!

This should never trigger, but just in case, we don’t ever want it to trigger in production.

Signed-off-by: Lars Wirzenius liw@liw.fi

liw pushed revision 5 c67256c4 on base d90b609b +999 -754 11 months ago

refactor: drop now-unnecessary pragma to allow unused imports

Signed-off-by: Lars Wirzenius liw@liw.fi

liw pushed revision 6 6f571150 on base d90b609b +998 -754 11 months ago

refactor: drop unnecessary pragma for allowing dead code

Signed-off-by: Lars Wirzenius liw@liw.fi

liw pushed revision 7 74710051 on base d90b609b +1000 -755 11 months ago

feat(src/queueproc.rs): log reason why waiting for adapter fails

Signed-off-by: Lars Wirzenius liw@liw.fi

liw pushed revision 8 185c474b on base d90b609b +998 -755 11 months ago

refactor: drop commented-out constants

Signed-off-by: Lars Wirzenius liw@liw.fi

liw pushed revision 9 cf6a958a on base d90b609b +996 -755 11 months ago

refactor(src/pull_queue.rs): avoid asserts

I didn’t like having asserts, and didn’t want debug_asserts. With plain asserts, the program would have panicked. With debug_asserts, the program would have silently overwritten the item in the queue. Instead, change the method to return whether it was able to set, and have the caller cope with not being able to set. The caller needs to be able handle that (and was already doing so).

Found-by: Fintan Signed-off-by: Lars Wirzenius liw@liw.fi

liw pushed revision 10 642564cd on base d90b609b +997 -755 11 months ago

refactor(src/pull_queue.rs): drop “end” method, add Drop impl

This makes it harder to forget to close the producer end.

Suggested-by: Fintan Signed-off-by: Lars Wirzenius liw@liw.fi

liw merged revision 642564cd at 4577682f 11 months ago