Closed tionebsalocin closed 5 years ago
LGTM.
FAR the options / cutomparams parameters in send{get,put,..}_request could be combined to avoid having too many ways to pass options.
@scalp42 did which version did you use? (there were a few fixes after version 2.1.0...)
Using the configs hash target host or token can be different at each call
e.g value = Diplomat::Kv.get('key/path', token: '000-111-222-333-444', http_addr: 'http://consu01:8500', dc: 'dc1', stale: true) Diplomat::Kv.put('key/path', value, token: '111-222-333-444-555', http_addr: 'http://consu02:8500', dc: 'dc2', stale: true)