Skip to content

Commit aeeb9ba

Browse files
committed
wip
1 parent 14a6a25 commit aeeb9ba

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

packages/shared/common/src/internal/fdv2/payloadReader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class PayloadReader {
7474
);
7575
}
7676
} else {
77-
this._errorHandler?.(DataSourceErrorKind.Unknown, 'Unexpected payload from event stream');
77+
this._errorHandler?.(DataSourceErrorKind.Unknown, 'Unexpected message from event stream');
7878
}
7979
});
8080
}

packages/shared/sdk-server/src/data_sources/StreamingProcessorFDv2.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ export default class StreamingProcessorFDv2 implements subsystem.LDStreamProcess
9696
start() {
9797
this._logConnectionStarted();
9898

99-
// TLS is handled by the platform implementation.
10099
const eventSource = this._requests.createEventSource(this._streamUri, {
101100
headers: this._headers,
102101
errorFilter: (error: HttpErrorResponse) => this._retryAndHandleError(error),

packages/shared/sdk-server/src/data_sources/createStreamListenersFDv2.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
LDKeyedFeatureStoreItem,
88
} from '../api/subsystems';
99

10-
// TODO: discuss if there is a better setup for this
1110
const namespaceForKind = (kind: string) => {
1211
switch (kind) {
1312
case 'feature':
@@ -30,6 +29,7 @@ export const createPayloadListener =
3029
// DataSourceUpdates will support update(...) taking in the list of updates.
3130
if (payload.basis) {
3231
// convert basis to init param structure
32+
// TODO: remove conversion as part of FDv2 Persistence work
3333
const converted: LDFeatureStoreDataStorage = {};
3434
payload.updates.forEach((it: internal.Update) => {
3535
const namespace = namespaceForKind(it.kind);
@@ -55,9 +55,8 @@ export const createPayloadListener =
5555
logger?.debug('Initializing all data');
5656
dataSourceUpdates.init(converted, basisReceived);
5757
} else {
58-
// TODO: is topo sort required here?
59-
6058
// convert data to upsert param
59+
// TODO: remove conversion as part of FDv2 Persistence work
6160
payload.updates.forEach((it: internal.Update) => {
6261
const converted: LDKeyedFeatureStoreItem = {
6362
key: it.key,

0 commit comments

Comments
 (0)