Skip to content

Commit 945c6e5

Browse files
committed
fix test
1 parent 2d58238 commit 945c6e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/utils/src/ratelimit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export function updateRateLimits(
8686
} else {
8787
for (const category of categories.split(';')) {
8888
if (category === 'metric_bucket') {
89-
const namespaces = limit.split(':', 5)[4] ? limit.split(':', 5)[4].split(';') : [];
89+
const namespaces = limit.split(':', 5)[4] ? limit.split(':', 5)[4].split(';') : null;
9090

9191
if (!namespaces || namespaces.includes('custom')) {
9292
// back off transmitting metrics from the SDK

0 commit comments

Comments
 (0)