Skip to content

Commit

Permalink
Fix service polling
Browse files Browse the repository at this point in the history
  • Loading branch information
blootsvoets committed Jun 17, 2020
1 parent 69db019 commit 87e0bb3
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import com.fasterxml.jackson.databind.ObjectReader;
import io.confluent.common.config.ConfigException;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.time.Duration;
import java.time.Instant;
Expand All @@ -45,7 +44,6 @@
import okhttp3.RequestBody;
import okhttp3.Response;
import okhttp3.ResponseBody;
import org.apache.kafka.connect.errors.ConnectException;
import org.radarbase.connect.rest.RestSourceConnectorConfig;
import org.radarbase.connect.rest.fitbit.FitbitRestSourceConnectorConfig;
import org.radarcns.exception.TokenException;
Expand Down Expand Up @@ -113,7 +111,7 @@ public void initialize(RestSourceConnectorConfig config) {

@Override
public Stream<? extends User> stream() {
if (nextFetch.get().equals(Instant.MIN)) {
if (nextFetch.get().equals(MIN_INSTANT)) {
try {
applyPendingUpdates();
} catch (IOException ex) {
Expand Down

0 comments on commit 87e0bb3

Please sign in to comment.