Skip to content

Commit

Permalink
make lint
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Kositsyn <kositsyn.pa@phystech.edu>
  • Loading branch information
pkositsyn committed Nov 20, 2020
1 parent 69aeec3 commit 35ff45e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cmd/opentelemetry/app/defaultconfig/default_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,13 @@ func createExporters(component ComponentType, storageTypes string, factories com
func enableAgentUDPEndpoints(jaeger *jaegerreceiver.Config) {
if jaeger.ThriftCompact == nil {
jaeger.ThriftCompact = &jaegerreceiver.ProtocolUDP{
Endpoint: udpThriftCompactEndpoint,
Endpoint: udpThriftCompactEndpoint,
ServerConfigUDP: jaegerreceiver.DefaultServerConfigUDP(),
}
}
if jaeger.ThriftBinary == nil {
jaeger.ThriftBinary = &jaegerreceiver.ProtocolUDP{
Endpoint: udpThriftBinaryEndpoint,
Endpoint: udpThriftBinaryEndpoint,
ServerConfigUDP: jaegerreceiver.DefaultServerConfigUDP(),
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ func configureAgent(v *viper.Viper, cfg *jaegerreceiver.Config) {
aOpts.InitFromViper(v)
if v.IsSet(thriftBinaryHostPort) {
cfg.ThriftBinary = &jaegerreceiver.ProtocolUDP{
Endpoint: v.GetString(thriftBinaryHostPort),
Endpoint: v.GetString(thriftBinaryHostPort),
ServerConfigUDP: jaegerreceiver.DefaultServerConfigUDP(),
}
}
if v.IsSet(thriftCompactHostPort) {
cfg.ThriftCompact = &jaegerreceiver.ProtocolUDP{
Endpoint: v.GetString(thriftCompactHostPort),
Endpoint: v.GetString(thriftCompactHostPort),
ServerConfigUDP: jaegerreceiver.DefaultServerConfigUDP(),
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestDefaultValueFromViper(t *testing.T) {
expected: &jaegerreceiver.Config{
Protocols: jaegerreceiver.Protocols{
ThriftCompact: &jaegerreceiver.ProtocolUDP{
Endpoint: "localhost:9999",
Endpoint: "localhost:9999",
ServerConfigUDP: jaegerreceiver.DefaultServerConfigUDP(),
},
},
Expand All @@ -85,7 +85,7 @@ func TestDefaultValueFromViper(t *testing.T) {
expected: &jaegerreceiver.Config{
Protocols: jaegerreceiver.Protocols{
ThriftBinary: &jaegerreceiver.ProtocolUDP{
Endpoint: "localhost:8888",
Endpoint: "localhost:8888",
ServerConfigUDP: jaegerreceiver.DefaultServerConfigUDP(),
},
},
Expand Down Expand Up @@ -124,7 +124,7 @@ func TestDefaultValueFromViper(t *testing.T) {
Endpoint: "localhost:8089",
},
ThriftBinary: &jaegerreceiver.ProtocolUDP{
Endpoint: "localhost:2222",
Endpoint: "localhost:2222",
ServerConfigUDP: jaegerreceiver.DefaultServerConfigUDP(),
},
},
Expand Down

0 comments on commit 35ff45e

Please sign in to comment.