According to Wikipedia's Hydraulic analogy page A resistor is analogous to a constricted pipe such at the one in the photo below.
Bernouli's principle tells us that the pressure in both sides would be identical in both of the wide sections of the pipe and in the narrow section of the pipe the pressure would be lower
it also tells us that the velocity inside the narrow section would be faster than the velocity in the wide parts
But, when a resistor is placed in a circuit, the rate of electron gets lower and stays that way throughout the circuit and causes a voltage drop across it, so when exiting the resistor, the pressure does not return to the entry pressure like it does in the pipe analogy.
so, in what way is this Hydraulic analogy of a resistor actually analogous to a resistor ?