Skip to content

Commit

Permalink
fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
erictg committed Apr 25, 2024
1 parent 4e776d3 commit 2c27e89
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,14 @@ func NewRuntime(opts ...RuntimeOption) *Runtime {

var healthMonitors []serviceHealthMonitor
s := grpc.NewServer(
append(ro.serverOptions, []grpc.ServerOption{
grpc.StatsHandler(otelgrpc.NewServerHandler(
otelgrpc.WithMessageEvents(otelgrpc.ReceivedEvents, otelgrpc.SentEvents),
)),
grpc.Creds(ro.tc),
}...)...,
append(ro.serverOptions,
[]grpc.ServerOption{
grpc.StatsHandler(otelgrpc.NewServerHandler(
otelgrpc.WithMessageEvents(otelgrpc.ReceivedEvents, otelgrpc.SentEvents),
)),
grpc.Creds(ro.tc),
}...,
)...,
)
for _, svc := range ro.services {
svc.registerFunc(s)
Expand Down

0 comments on commit 2c27e89

Please sign in to comment.