Skip to content

Commit d6d252f

Browse files
committed
removed logs
1 parent 9491531 commit d6d252f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

packages/core/src/v3/apiClient/stream.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,7 @@ class ReadableShapeStream<T extends Row<unknown> = Row> {
126126
try {
127127
let isUpToDate = false;
128128

129-
console.log(`Processing ${messages.length} messages`);
130-
131129
for (const message of messages) {
132-
console.log("shape message", message);
133-
134130
if (isChangeMessage(message)) {
135131
const key = message.key;
136132
switch (message.headers.operation) {
@@ -154,7 +150,6 @@ class ReadableShapeStream<T extends Row<unknown> = Row> {
154150
this.#currentState.clear();
155151
this.#error = false;
156152
} else if (message.headers.control === "up-to-date") {
157-
console.log("Setting isUpToDate to true");
158153
isUpToDate = true;
159154
}
160155
}
@@ -166,14 +161,11 @@ class ReadableShapeStream<T extends Row<unknown> = Row> {
166161
for (const key of updatedKeys) {
167162
const finalRow = this.#currentState.get(key);
168163
if (finalRow) {
169-
console.log("enqueueing finalRow", finalRow);
170164
controller.enqueue(finalRow);
171165
}
172166
}
173167

174168
updatedKeys.clear();
175-
} else {
176-
console.log("Not enqueuing any rows because the stream is not up to date");
177169
}
178170
} catch (error) {
179171
console.error("Error processing stream messages:", error);

0 commit comments

Comments
 (0)