(ctx context.Context, key string, f func(interface{}) bool)
| 100 | } |
| 101 | |
| 102 | func (m metrics) WatchKey(ctx context.Context, key string, f func(interface{}) bool) { |
| 103 | _ = instrument.CollectedRequest(ctx, "WatchKey", m.requestDuration, instrument.ErrorCode, func(ctx context.Context) error { |
| 104 | m.c.WatchKey(ctx, key, f) |
| 105 | return nil |
| 106 | }) |
| 107 | } |
| 108 | |
| 109 | func (m metrics) WatchPrefix(ctx context.Context, prefix string, f func(string, interface{}) bool) { |
| 110 | _ = instrument.CollectedRequest(ctx, "WatchPrefix", m.requestDuration, instrument.ErrorCode, func(ctx context.Context) error { |
nothing calls this directly
no test coverage detected