Skip to content

Commit 448311d

Browse files
author
Brian Chen
committed
comment fixes
1 parent 11ca8a5 commit 448311d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

firebase-firestore/src/main/java/com/google/firebase/firestore/remote/OnlineStateTracker.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void handleWatchStreamFailure(Status status) {
115115
// To get to OnlineState.ONLINE, updateState() must have been called which would have reset
116116
// our heuristics.
117117
hardAssert(this.watchStreamFailures == 0, "watchStreamFailures must be 0");
118-
hardAssert(this.connectivityAttemptTimer == null, "setConnectivityAttemptTimer must be null");
118+
hardAssert(this.connectivityAttemptTimer == null, "connectivityAttemptTimer must be null");
119119
} else {
120120
watchStreamFailures++;
121121
if (watchStreamFailures >= MAX_WATCH_STREAM_FAILURES) {
@@ -151,7 +151,6 @@ void updateState(OnlineState newState) {
151151
}
152152

153153
private void setAndBroadcastState(OnlineState newState) {
154-
Logger.debug("OST", "BCHEN: state set to " + newState);
155154
if (newState != state) {
156155
state = newState;
157156
onlineStateCallback.handleOnlineStateChange(newState);

firebase-firestore/src/main/java/com/google/firebase/firestore/util/ExponentialBackoff.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ public void backoffAndRun(Runnable task) {
131131

132132
// Guard against the backoff delay already being past.
133133
long remainingDelayMs = Math.max(0, desiredDelayWithJitterMs - delaySoFarMs);
134+
134135
if (currentBaseMs > 0) {
135136
Logger.debug(
136137
getClass().getSimpleName(),

0 commit comments

Comments
 (0)