revert: force limit core log rate

This commit is contained in:
arm64v8a
2023-05-17 21:28:10 +09:00
parent 158dfed3f3
commit c58f57cd71
2 changed files with 1 additions and 6 deletions

View File

@@ -17,12 +17,9 @@ import (
"time" "time"
"github.com/matsuridayo/libneko/neko_common" "github.com/matsuridayo/libneko/neko_common"
"github.com/matsuridayo/libneko/neko_log"
grpc_auth "github.com/grpc-ecosystem/go-grpc-middleware/auth" grpc_auth "github.com/grpc-ecosystem/go-grpc-middleware/auth"
"google.golang.org/grpc" "google.golang.org/grpc"
"golang.org/x/time/rate"
) )
type BaseServer struct { type BaseServer struct {
@@ -44,8 +41,6 @@ func RunCore(setupCore func(), server gen.LibcoreServiceServer) {
flag.CommandLine.Parse(os.Args[2:]) flag.CommandLine.Parse(os.Args[2:])
neko_common.Debug = *_debug neko_common.Debug = *_debug
neko_log.RateLimiter = rate.NewLimiter(rate.Limit(100), 150)
neko_log.RateLimitExit = true
go func() { go func() {
parent, err := os.FindProcess(os.Getppid()) parent, err := os.FindProcess(os.Getppid())

View File

@@ -1,5 +1,5 @@
if [ ! -z $ENV_NEKORAY ]; then if [ ! -z $ENV_NEKORAY ]; then
export COMMIT_SING_BOX_EXTRA="4768132c35fb9d92e4e9914b15391f29fad4821a" export COMMIT_SING_BOX_EXTRA="d663cfa6b9f721d306ec3972460b61bb2c935685"
export COMMIT_MATSURI_V2RAY="8134d3cc23aa6b8e2a056887addf22d7d22bd969" export COMMIT_MATSURI_V2RAY="8134d3cc23aa6b8e2a056887addf22d7d22bd969"
fi fi