(p *consul.KVPair, options *consul.WriteOptions)
| 30 | } |
| 31 | |
| 32 | func (c consulInstrumentation) CAS(p *consul.KVPair, options *consul.WriteOptions) (bool, *consul.WriteMeta, error) { |
| 33 | var ok bool |
| 34 | var result *consul.WriteMeta |
| 35 | err := instrument.CollectedRequest(options.Context(), "CAS", c.consulMetrics.consulRequestDuration, instrument.ErrorCode, func(ctx context.Context) error { |
| 36 | options = options.WithContext(ctx) |
| 37 | var err error |
| 38 | ok, result, err = c.kv.CAS(p, options) |
| 39 | return err |
| 40 | }) |
| 41 | return ok, result, err |
| 42 | } |
| 43 | |
| 44 | func (c consulInstrumentation) Get(key string, options *consul.QueryOptions) (*consul.KVPair, *consul.QueryMeta, error) { |
| 45 | var kvp *consul.KVPair |
nothing calls this directly
no test coverage detected