Skip to content

Commit b44c390

Browse files
committed
fix test
1 parent cf93c9e commit b44c390

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
@@ -85,7 +85,7 @@ export function updateRateLimits(
8585
} else {
8686
for (const category of categories.split(';')) {
8787
if (category === 'metric_bucket') {
88-
const namespaces = limit.split(':', 5)[4] ? limit.split(':', 5)[4].split(';') : [];
88+
const namespaces = limit.split(':', 5)[4] ? limit.split(':', 5)[4].split(';') : null;
8989

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

0 commit comments

Comments
 (0)