Skip to content

Commit

Permalink
address code review comments by @graphaelli
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron cohen committed Jul 17, 2018
1 parent 13f1317 commit f154038
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions beater/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
conf "github.com/elastic/apm-server/config"
"github.com/elastic/apm-server/decoder"
"github.com/elastic/apm-server/processor"
err "github.com/elastic/apm-server/processor/error"
perr "github.com/elastic/apm-server/processor/error"
"github.com/elastic/apm-server/processor/metric"
"github.com/elastic/apm-server/processor/sourcemap"
"github.com/elastic/apm-server/processor/transaction"
Expand Down Expand Up @@ -141,8 +141,8 @@ var (
ProcessorRoutes = map[string]routeMapping{
BackendTransactionsURL: {backendHandler, transaction.Processor},
FrontendTransactionsURL: {frontendHandler, transaction.Processor},
BackendErrorsURL: {backendHandler, err.Processor},
FrontendErrorsURL: {frontendHandler, err.Processor},
BackendErrorsURL: {backendHandler, perr.Processor},
FrontendErrorsURL: {frontendHandler, perr.Processor},
MetricsURL: {metricsHandler, metric.Processor},
SourcemapsURL: {sourcemapHandler, sourcemap.Processor},
}
Expand Down
6 changes: 3 additions & 3 deletions model/metric/payload_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ func TestPayloadDecode(t *testing.T) {
} {
payloadInterface, err := DecodePayload(test.input)

// its ok to ignore the outcome of this cast here because
// we assert everything below
payload, ok := payloadInterface.(*Payload)
require.True(t, ok)
if payloadInterface != nil {
require.True(t, ok)
}

// compare metrics separately as they may be ordered differently
if test.p != nil && test.p.Metrics != nil {
Expand Down

0 comments on commit f154038

Please sign in to comment.