mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-24 18:40:38 +00:00
Technically speaking, the current code is not wrong. However, it was written before we had do_with, and I ended up dowithing it while chasing our erratic bug under the suspicion that this code could somehow be related with our bug. Turns out it isn't, but now that I went through the trouble of dowithing it - and since do_with is easier to reason about and guarantee liveness, let's go with this option. Signed-off-by: Glauber Costa <glommer@cloudius-systems.com> Reviewed-by: Pekka Enberg <penberg@cloudius-systems.com>