File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
internal/plugins/gcnotifier Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ package handler
33import (
44 "context"
55 "fmt"
6- "github.com/pubgo/lava/core/logging"
7- "github.com/pubgo/lava/core/metric"
86 "math/rand"
97
108 "github.com/google/uuid"
119 "github.com/mattheath/kala/bigflake"
1210 "github.com/mattheath/kala/snowflake"
1311 "github.com/teris-io/shortid"
1412
13+ "github.com/pubgo/lava/core/logging"
14+ "github.com/pubgo/lava/core/metric"
1515 "github.com/pubgo/lava/errors"
1616 "github.com/pubgo/lava/example/protopb/proto/gid"
1717 "github.com/pubgo/lava/plugins/scheduler"
@@ -20,6 +20,7 @@ import (
2020var _ gid.IdServer = (* Id )(nil )
2121
2222type Id struct {
23+ gid.UnimplementedIdServer
2324 Snowflake * snowflake.Snowflake
2425 Bigflake * bigflake.Bigflake
2526 Cron * scheduler.Scheduler `dix:""`
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ func NewTestAPIHandler() *testApiHandler {
5252var _ service.Handler = (* testApiHandler )(nil )
5353
5454type testApiHandler struct {
55+ hello.UnimplementedTestApiServer
5556 Db * orm.Client
5657 Cron * scheduler.Scheduler
5758 TestApiSrv hello.TestApiClient
Original file line number Diff line number Diff line change @@ -20,8 +20,9 @@ func init() {
2020 }
2121
2222 plugin .Register (& plugin.Base {
23- Name : Name ,
24- Docs : "Know when GC runs from inside your golang code" ,
23+ Name : Name ,
24+ CfgNotCheck : true ,
25+ Docs : "Know when GC runs from inside your golang code" ,
2526 OnInit : func (p plugin.Process ) {
2627 p .AfterStop (syncx .GoCtx (func (ctx context.Context ) {
2728 var gc = gcnotifier .New ()
You can’t perform that action at this time.
0 commit comments