Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
s1gr1d committed Apr 9, 2024
1 parent cf93c9e commit b44c390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/ratelimit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function updateRateLimits(
} else {
for (const category of categories.split(';')) {
if (category === 'metric_bucket') {
const namespaces = limit.split(':', 5)[4] ? limit.split(':', 5)[4].split(';') : [];
const namespaces = limit.split(':', 5)[4] ? limit.split(':', 5)[4].split(';') : null;

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

0 comments on commit b44c390

Please sign in to comment.