Skip to content

Commit b60c5bf

Browse files
committed
fix
1 parent 06fae7b commit b60c5bf

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

example/srv/gid/handler/gid.id.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ package handler
33
import (
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 (
2020
var _ gid.IdServer = (*Id)(nil)
2121

2222
type Id struct {
23+
gid.UnimplementedIdServer
2324
Snowflake *snowflake.Snowflake
2425
Bigflake *bigflake.Bigflake
2526
Cron *scheduler.Scheduler `dix:""`

example/srv/hello/handler/testapi.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func NewTestAPIHandler() *testApiHandler {
5252
var _ service.Handler = (*testApiHandler)(nil)
5353

5454
type testApiHandler struct {
55+
hello.UnimplementedTestApiServer
5556
Db *orm.Client
5657
Cron *scheduler.Scheduler
5758
TestApiSrv hello.TestApiClient

internal/plugins/gcnotifier/plugin.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)