update to latest micro
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
e3018c288d
commit
8c167423e6
4
drpc.go
4
drpc.go
@ -13,6 +13,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
// nolint: staticcheck
|
// nolint: staticcheck
|
||||||
|
|
||||||
"go.unistack.org/micro/v3/broker"
|
"go.unistack.org/micro/v3/broker"
|
||||||
@ -45,7 +46,7 @@ type grpcServerReflection struct {
|
|||||||
|
|
||||||
type grpcServer struct {
|
type grpcServer struct {
|
||||||
handlers map[string]server.Handler
|
handlers map[string]server.Handler
|
||||||
// srv *grpc.Server
|
// srv *grpc.Server
|
||||||
exit chan chan error
|
exit chan chan error
|
||||||
wg *sync.WaitGroup
|
wg *sync.WaitGroup
|
||||||
rsvc *register.Service
|
rsvc *register.Service
|
||||||
@ -671,6 +672,7 @@ func (g *grpcServer) Register() error {
|
|||||||
}
|
}
|
||||||
opts = append(opts, broker.SubscribeContext(subCtx))
|
opts = append(opts, broker.SubscribeContext(subCtx))
|
||||||
opts = append(opts, broker.SubscribeAutoAck(sb.Options().AutoAck))
|
opts = append(opts, broker.SubscribeAutoAck(sb.Options().AutoAck))
|
||||||
|
opts = append(opts, broker.SubscribeBodyOnly(sb.Options().BodyOnly))
|
||||||
|
|
||||||
if config.Logger.V(logger.InfoLevel) {
|
if config.Logger.V(logger.InfoLevel) {
|
||||||
config.Logger.Infof(config.Context, "Subscribing to topic: %s", sb.Topic())
|
config.Logger.Infof(config.Context, "Subscribing to topic: %s", sb.Topic())
|
||||||
|
Loading…
Reference in New Issue
Block a user