proxy: don't inc a cache miss count in a case of linearizable range
Requests of linearizable range don't touch the cache of grpcproxy. So
incrementing the miss count wouldn't be meaningful.
@@ -48,8 +48,9 @@ func (p *kvProxy) Range(ctx context.Context, r *pb.RangeRequest) (*pb.RangeRespo
cacheHits.Inc()
return nil, err
}
- }
+
cachedMisses.Inc()
+ }
resp, err := p.kv.Do(ctx, RangeRequestToOp(r))
if err != nil {
