If we stick with this version I'd argue it makes more sense to just stick the sync_node = and priority = statements into the if block and ditch the continue. </nitpick>
Let's go with the cleaner version then, I'd prefer code that can be read easily for this code path. Switching back is not much complicated either. --