Merge branch 'v3' into v3
Some checks failed
automerge / automerge (pull_request) Failing after 12s
dependabot-automerge / automerge (pull_request) Has been skipped
autoapprove / autoapprove (pull_request) Failing after 1m1s
lint / lint (pull_request) Failing after 3m10s
test / test (pull_request) Successful in 4m29s

This commit is contained in:
Василий Толстов 2024-12-11 01:30:07 +03:00
commit 08cf614f4d
4 changed files with 2 additions and 7 deletions

View File

@ -81,7 +81,7 @@ type Server struct {
stateHealth *atomic.Uint32
started bool
registered bool
reflection bool
// reflection bool
}
func newServer(opts ...server.Option) *Server {

View File

@ -50,6 +50,7 @@ func (r *reflector) RangeExtensionsByMessage(message protoreflect.FullName, f fu
}
func TestReflector(t *testing.T) {
t.Skip()
srv := NewServer(Reflection(&reflector{}), server.Address(":12345"))
if err := srv.Init(); err != nil {
t.Fatal(err)

View File

@ -1,8 +1,6 @@
package grpc
import (
"io"
"go.unistack.org/micro/v3/codec"
"go.unistack.org/micro/v3/metadata"
"go.unistack.org/micro/v3/server"
@ -11,7 +9,6 @@ import (
var _ server.Request = &rpcRequest{}
type rpcRequest struct {
rw io.ReadWriter
payload interface{}
codec codec.Codec
header metadata.Metadata

View File

@ -1,8 +1,6 @@
package grpc
import (
"io"
"go.unistack.org/micro/v3/codec"
"go.unistack.org/micro/v3/metadata"
"go.unistack.org/micro/v3/server"
@ -11,7 +9,6 @@ import (
var _ server.Response = &rpcResponse{}
type rpcResponse struct {
rw io.ReadWriter
header metadata.Metadata
codec codec.Codec
}