File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
sdk-server/src/data_sources Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 ) ,
Original file line number Diff line number Diff line change 77 LDKeyedFeatureStoreItem ,
88} from '../api/subsystems' ;
99
10- // TODO: discuss if there is a better setup for this
1110const 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 ,
You can’t perform that action at this time.
0 commit comments