oxidecomputer / idolatry

An experimental IPC interface definition language for Hubris.
Mozilla Public License 2.0
17 stars 11 forks source link

Add retry loop in generated client for idempotent operations #28

Closed jgallagher closed 2 years ago

jgallagher commented 2 years ago

It looked like the simplest way to conditionally introduce the loop was to change the final statement to always be (the equivalent of) return v; instead of just v, so I also added a suppression for clippy::needless_return, since all non-idempotent operations now end with a needless return.

Fixes #19.