Skip to content

Commit

Permalink
Rename profiling cache to generic fifo cache
Browse files Browse the repository at this point in the history
  • Loading branch information
krystofwoldrich committed Jun 19, 2023
1 parent 5e9300b commit f361c81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/browser/src/profiling/cache.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Event } from '@sentry/types';
import { makeProfilingCache } from '@sentry/utils';
import { makeFifoCache } from '@sentry/utils';

export const PROFILING_EVENT_CACHE = makeProfilingCache<string, Event>(20);
export const PROFILING_EVENT_CACHE = makeFifoCache<string, Event>(20);
2 changes: 1 addition & 1 deletion packages/utils/src/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Creates a cache that evicts keys in fifo order
* @param size {Number}
*/
export function makeProfilingCache<Key extends string, Value>(
export function makeFifoCache<Key extends string, Value>(
size: number,
): {
get: (key: Key) => Value | undefined;
Expand Down

0 comments on commit f361c81

Please sign in to comment.