Skip to content

Commit bdd62f2

Browse files
Yostratonyxiao
authored andcommitted
cleanup
1 parent 0c9d970 commit bdd62f2

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

apps/service/src/temporal/activities/_shared.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,12 @@ export async function drainMessages(
6262
): Promise<{
6363
errors: RunResult['errors']
6464
state: SourceState
65-
records: Message[]
6665
sourceConfig?: Record<string, unknown>
6766
destConfig?: Record<string, unknown>
6867
eof?: EofPayload
6968
}> {
7069
const errors: RunResult['errors'] = []
7170
let state: SourceState = initialState ?? { streams: {}, global: {} }
72-
const records: Message[] = []
7371
let sourceConfig: Record<string, unknown> | undefined
7472
let destConfig: Record<string, unknown> | undefined
7573
let eof: EofPayload | undefined
@@ -91,13 +89,11 @@ export async function drainMessages(
9189
errors.push(error)
9290
} else if (message.type === 'source_state') {
9391
state = mergeStateMessage(state, message)
94-
} else if (message.type === 'record') {
95-
records.push(message)
9692
}
9793
}
9894
if (count % 50 === 0) heartbeat({ messages: count })
9995
}
10096
if (count % 50 !== 0) heartbeat({ messages: count })
10197

102-
return { errors, state, records, sourceConfig, destConfig, eof }
98+
return { errors, state, sourceConfig, destConfig, eof }
10399
}

0 commit comments

Comments
 (0)