Skip to content

Commit 9222f1d

Browse files
authored
fix: When constructing an EdgeRateLimiter, retrieve the PenaltyBox instance's name using PenaltyBox::get_name (#866)
1 parent a6816cd commit 9222f1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/js-compute-runtime/builtins/edge-rate-limiter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ bool EdgeRateLimiter::constructor(JSContext *cx, unsigned argc, JS::Value *vp) {
446446
return false;
447447
}
448448

449-
auto pb_name = RateCounter::get_name(pb.toObjectOrNull());
449+
auto pb_name = PenaltyBox::get_name(pb.toObjectOrNull());
450450
if (!pb_name) {
451451
return false;
452452
}

0 commit comments

Comments
 (0)