Skip to content

Commit

Permalink
Merge pull request cloudwego#431 from jayantxie/optimize/advanced_lim…
Browse files Browse the repository at this point in the history
…iter

feat: extend outside limiter implementation and fix problems of rate limiter of multiplexed server
  • Loading branch information
jayantxie authored May 24, 2022
2 parents 02b17e3 + c98fb46 commit 113cd23
Show file tree
Hide file tree
Showing 26 changed files with 995 additions and 472 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ require (
github.com/cloudwego/thriftgo v0.1.2
github.com/golang/mock v1.6.0
github.com/json-iterator/go v1.1.12
github.com/stretchr/testify v1.7.0
github.com/tidwall/gjson v1.9.3
golang.org/x/net v0.0.0-20210614182718-04defd469f4e
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
Expand Down
1 change: 0 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjY
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
Expand Down
6 changes: 3 additions & 3 deletions internal/mocks/generic/generic_service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions internal/mocks/generic/thrift.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

228 changes: 228 additions & 0 deletions internal/mocks/limiter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

66 changes: 0 additions & 66 deletions internal/mocks/limiter/concurrency_limiter.go

This file was deleted.

36 changes: 0 additions & 36 deletions internal/mocks/limiter/limit_reporter.go

This file was deleted.

Loading

0 comments on commit 113cd23

Please sign in to comment.