Skip to content

Commit

Permalink
fixing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tanderson-ld committed Oct 15, 2024
1 parent a16aa37 commit c22fd0e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/sdk/browser/src/BrowserDataManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export default class BrowserDataManager extends BaseDataManager {
const pollingRequestor = makeRequestor(
plainContextString,
this.config.serviceEndpoints,
this.getPollingPaths(), // note: this is the polling path because the requestor is only used to make polling requests.
this.getPollingPaths(),
this.platform.requests,
this.platform.encoding!,
this.baseHeaders,
Expand Down
2 changes: 2 additions & 0 deletions packages/sdk/react-native/__tests__/MobileDataManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ describe('given a MobileDataManager with mocked dependencies', () => {
return `/msdk/evalx/context`;
},
pathPing(_encoding: Encoding, _plainContextString: string): string {
// Note: if you are seeing this error, it is a coding error. This DataSourcePaths implementation is for polling endpoints. /ping is not currently
// used in a polling situation. It is probably the case that this was called by streaming logic erroneously.
throw new Error('Ping for polling unsupported.');
},
}),
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/react-native/src/MobileDataManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default class MobileDataManager extends BaseDataManager {
const requestor = makeRequestor(
plainContextString,
this.config.serviceEndpoints,
this.getPollingPaths(), // note: this is the polling path because the requestor is only used to make polling requests.
this.getPollingPaths(),
this.platform.requests,
this.platform.encoding!,
this.baseHeaders,
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/sdk-client/__tests__/TestDataManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default class TestDataManager extends BaseDataManager {
const requestor = makeRequestor(
JSON.stringify(Context.toLDContext(context)),
this.config.serviceEndpoints,
this.getPollingPaths(), // note: this is the polling path because the requestor is only used to make polling requests.
this.getPollingPaths(),
this.platform.requests,
this.platform.encoding!,
this.baseHeaders,
Expand Down

0 comments on commit c22fd0e

Please sign in to comment.