Skip to content

Commit 9635307

Browse files
authored
Fix signup rate limit #3307
When rate limited, the nil err is always returned.
2 parents 796da93 + 4dbfcff commit 9635307

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/lib/interaction/nodes/do_create_user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ func (n *NodeDoCreateUser) GetEffects() ([]interaction.Effect, error) {
8686
// check the rate limit only before running the effects
8787
bucket := interaction.SignupPerIPRateLimitBucketSpec(ctx.Config.Authentication, isAnonymous, ip)
8888
reservation = ctx.RateLimiter.Reserve(bucket)
89-
if reservation.Error() != nil {
89+
if err := reservation.Error(); err != nil {
9090
return err
9191
}
9292
}

0 commit comments

Comments
 (0)