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 1 year ago

jgallagher commented 1 year 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.