mirror of
https://github.com/smallnest/rpcx.git
synced 2025-10-05 08:06:58 +08:00
revise annotation
This commit is contained in:
@@ -39,7 +39,7 @@ func NewRedisRateLimitingPlugin(addrs []string, rate int, burst int, period time
|
||||
}
|
||||
}
|
||||
|
||||
// PreReadRequest can limit request processing.
|
||||
// PostReadRequest can limit request processing.
|
||||
func (plugin *RedisRateLimitingPlugin) PostReadRequest(ctx context.Context, r *protocol.Message, e error) error {
|
||||
res, err := plugin.limiter.Allow(ctx, r.ServicePath+"/"+r.ServiceMethod, plugin.limit)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user