Skip to content

Commit a26ca00

Browse files
code cleanup
1 parent f4033b9 commit a26ca00

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

kafka-connect-fitbit-source/src/main/java/org/radarbase/connect/rest/fitbit/user/firebase/FirebaseUserRepository.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import java.util.concurrent.ExecutionException;
1414
import java.util.concurrent.TimeUnit;
1515
import java.util.concurrent.TimeoutException;
16-
import javax.ws.rs.NotAuthorizedException;
1716
import org.radarbase.connect.rest.RestSourceConnectorConfig;
1817
import org.radarbase.connect.rest.fitbit.user.UserRepository;
1918
import org.slf4j.Logger;
@@ -81,7 +80,7 @@ protected DocumentSnapshot getDocument(String key, CollectionReference collectio
8180
* @param object The POJO to write to the document
8281
* @throws IOException If there was a problem updating the document
8382
*/
84-
protected synchronized void updateDocument(DocumentReference documentReference, Object object)
83+
protected void updateDocument(DocumentReference documentReference, Object object)
8584
throws IOException {
8685
try {
8786
documentReference.set(object, SetOptions.merge()).get(20, TimeUnit.SECONDS);

kafka-connect-fitbit-source/src/main/java/org/radarbase/connect/rest/fitbit/user/firebase/FitbitTokenService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public FitbitOAuth2UserCredentials processTokenRequest(FormBody form)
7676
}
7777
}
7878

79-
public synchronized FitbitOAuth2UserCredentials refreshToken(String oldToken) throws IOException {
79+
public FitbitOAuth2UserCredentials refreshToken(String oldToken) throws IOException {
8080
FormBody form =
8181
new FormBody.Builder()
8282
.add("grant_type", "refresh_token")

0 commit comments

Comments
 (0)