Making websocket create community do register rate limit.
This commit is contained in:
parent
7fa97614f8
commit
8050f97379
1 changed files with 1 additions and 1 deletions
|
@ -905,7 +905,7 @@ where
|
||||||
match op2 {
|
match op2 {
|
||||||
UserOperation::Register => rate_limiter.register().wrap(ip, fut).await,
|
UserOperation::Register => rate_limiter.register().wrap(ip, fut).await,
|
||||||
UserOperation::CreatePost => rate_limiter.post().wrap(ip, fut).await,
|
UserOperation::CreatePost => rate_limiter.post().wrap(ip, fut).await,
|
||||||
UserOperation::CreateCommunity => rate_limiter.post().wrap(ip, fut).await,
|
UserOperation::CreateCommunity => rate_limiter.register().wrap(ip, fut).await,
|
||||||
_ => rate_limiter.message().wrap(ip, fut).await,
|
_ => rate_limiter.message().wrap(ip, fut).await,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue