Skip to content

Commit 97d1f96

Browse files
committed
x
1 parent edd1b37 commit 97d1f96

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

internal/health/health.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ func IsReady() bool {
4848
return defaultHealthManager.IsReady()
4949
}
5050

51-
// MarkReady sets components status to ready.
52-
func MarkReady() {
53-
defaultHealthManager.MarkReady()
54-
}
55-
5651
// CreateHttpHandler create health http handler base on given probe.
5752
func CreateHttpHandler(healthResponse string) http.HandlerFunc {
5853
return func(w http.ResponseWriter, _ *http.Request) {

zrpc/internal/rpcpubserver_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88

99
"github.com/zeromicro/go-zero/core/discov"
1010
"github.com/zeromicro/go-zero/core/netx"
11-
"github.com/zeromicro/go-zero/internal/health"
1211
)
1312

1413
func TestNewRpcPubServer(t *testing.T) {
@@ -18,7 +17,6 @@ func TestNewRpcPubServer(t *testing.T) {
1817
ID: 10,
1918
}, "")
2019
assert.NoError(t, err)
21-
health.MarkReady()
2220
assert.NotPanics(t, func() {
2321
s.Start(func(server *grpc.Server) {
2422
})

0 commit comments

Comments
 (0)