Skip to content

Commit

Permalink
Maybe I fixed some rebasing issues..
Browse files Browse the repository at this point in the history
  • Loading branch information
burmanm committed Jul 4, 2017
1 parent 9fa4ab6 commit 08da6a6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import java.util.concurrent.ConcurrentSkipListSet;
import java.util.concurrent.TimeUnit;
import java.util.function.BiConsumer;
import java.util.function.BiFunction;
import java.util.function.Function;

import org.hawkular.metrics.core.service.compress.CompressedPointContainer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -632,11 +632,6 @@ public <T> Observable<DataPoint<T>> findDataPoints(MetricId<T> metricId, long st
MetricType<T> metricType = metricId.getType();
Func1<Row, DataPoint<T>> mapper = getDataPointMapper(metricType);

Func6<MetricId<T>, Long, Long, Integer, Order, Integer, Observable<Row>> finder =
getDataPointFinder(metricType);

Observable<DataPoint<T>> results;

if(metricType == GAUGE || metricType == AVAILABILITY || metricType == COUNTER) {
long sliceStart = DateTimeService.getTimeSlice(start, Duration.standardHours(2));

Expand Down Expand Up @@ -693,7 +688,7 @@ public <T> Observable<DataPoint<T>> findDataPoints(MetricId<T> metricId, long st
Func6<MetricId<T>, Long, Long, Integer, Order, Integer, Observable<Row>> finder =
getDataPointFinder(metricType);

results = finder.call(metricId, start, end, limit, safeOrder, pageSize).map(mapper);
Observable<DataPoint<T>> results = finder.call(metricId, start, end, limit, safeOrder, pageSize).map(mapper);
return results.doOnCompleted(context::stop);
}

Expand Down

0 comments on commit 08da6a6

Please sign in to comment.