mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 13:04:37 +03:00
revert: force limit core log rate
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user