Web3.py: Rename middleware_stack to middleware_onion

Created on 28 Aug 2018  路  7Comments  路  Source: ethereum/web3.py

How can it be fixed?

see #1020

Most helpful comment

I prefer middleware_onion to layers or pipeline. It gets the point across better I think. The onion analogy is pretty common.

All 7 comments

I'm half-joking when suggesting onion. But I haven't come up with anything better. Maybe...

  • middleware_layers
  • middleware_pipeline

But I'm seriously okay with onion if we don't like anything else better.

I prefer middleware_onion to layers or pipeline. It gets the point across better I think. The onion analogy is pretty common.

This doesn't seem to have actually been closed in #1020

What about... just middleware? lol

Is middleware better than middleware_onion?

The latter seems clearer to me. It says "thing that has layers that will be applied in a LIFO order" - like an arrow piercing an onion.

middleware_onion helps distinguish the class that ochestrates the middlewares from the middleware functions themselves.

@njgheorghita Can this issue be closed?

@dylanjw 馃憤

Was this page helpful?
0 / 5 - 0 ratings