abcxyz / jvs

Apache License 2.0
8 stars 0 forks source link

Add configuration for setting default and max TTLs #176

Closed sethvargo closed 1 year ago

sethvargo commented 1 year ago

This introduces new configuration into the JVS server - DefaultTTL and MaxTTL. The DefaultTTL is the TTL that the server will assign if the client does not request a TTL. The MaxTTL is the maximum value a client can request. If a client requests a larger TTL than the MaxTTL, they will get an error back in the response. This required threading through some data into the response that was not previously provided.

Fixes GH-169 Closes GH-172