Skip to content

Commit

Permalink
intialize -> initialize (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
tore-statsig authored Jan 3, 2024
1 parent c18f227 commit 0e2ed71
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/StatsigClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1280,9 +1280,9 @@ export default class StatsigClient implements IHasStatsigInternal, IStatsig {
})
.then(async (json: Record<string, unknown>) => {
return this.errorBoundary.swallow('fetchAndSaveValues', async () => {
Diagnostics.mark.intialize.process.start({});
Diagnostics.mark.initialize.process.start({});
if (!verifySDKKeyUsed(json, this.sdkKey ?? '', this.errorBoundary)) {
Diagnostics.mark.intialize.process.end({ success: false });
Diagnostics.mark.initialize.process.end({ success: false });
return;
}
if (json?.has_updates) {
Expand All @@ -1299,7 +1299,7 @@ export default class StatsigClient implements IHasStatsigInternal, IStatsig {
...this.prefetchedUsersByCacheKey,
...keyedPrefetchUsers,
};
Diagnostics.mark.intialize.process.end({ success: true });
Diagnostics.mark.initialize.process.end({ success: true });
});
});
}
Expand Down
6 changes: 3 additions & 3 deletions src/StatsigNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default class StatsigNetwork {
return this.postWithTimeout(StatsigEndpoint.Initialize, input, {
timeout,
retries: 3,
diagnostics: Diagnostics.mark.intialize.networkRequest,
diagnostics: Diagnostics.mark.initialize.networkRequest,
});
}

Expand All @@ -113,7 +113,7 @@ export default class StatsigNetwork {
timeout?: number;
retries?: number;
backoff?: number;
diagnostics?: typeof Diagnostics.mark.intialize.networkRequest | null;
diagnostics?: typeof Diagnostics.mark.initialize.networkRequest | null;
},
): PromiseWithTimeout<T> {
const {
Expand Down Expand Up @@ -253,7 +253,7 @@ export default class StatsigNetwork {
backoff?: number;
};
useKeepalive?: boolean;
diagnostics?: typeof Diagnostics.mark.intialize.networkRequest | null;
diagnostics?: typeof Diagnostics.mark.initialize.networkRequest | null;
},
): Promise<NetworkResponse> {
const { useKeepalive = false, diagnostics = null } = options ?? {};
Expand Down
2 changes: 1 addition & 1 deletion src/utils/Diagnostics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ type DiagnosticsMaxMarkers = {
export class DiagnosticsImpl {
readonly mark = {
overall: this.selectAction<OverrallDataType>('overall'),
intialize: this.selectStep<InitializeDataType>('initialize'),
initialize: this.selectStep<InitializeDataType>('initialize'),
bootstrap: this.selectStep<BootstrapDataType>('bootstrap'),
api_call: (tag: string) => {
switch (tag) {
Expand Down

0 comments on commit 0e2ed71

Please sign in to comment.