Roblox / rs-consul

This crate provides access to a set of strongly typed apis to interact with consul (https://www.consul.io/)
MIT License
36 stars 23 forks source link

ADHOC: Fix wait serialization #21

Closed JanBerktold closed 2 years ago

JanBerktold commented 2 years ago

What problem are we solving?

We were seeing requests being denied by Consul due to an incorrectly formatted wait time: RsConsulError(UnexpectedResponseCode(400, \"Invalid wait time\"))

How are we solving the problem?

Use the same duration_as_string method that we're already using for other paths.

Checks

Please check these off before promoting the pull request to non-draft status.

giladwolff commented 2 years ago

Is there a way to test this?