Skip to content

Commit

Permalink
Fix unmarshalling in OTEL badger (#2488)
Browse files Browse the repository at this point in the history
* Fix unmarshalling in OTEL badger

Signed-off-by: Pavol Loffay <ploffay@redhat.com>

* Remove space

Signed-off-by: Pavol Loffay <ploffay@redhat.com>
  • Loading branch information
pavolloffay committed Sep 17, 2020
1 parent ea2f2eb commit 5b9598d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin/storage/badger/spanstore/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"sort"

"github.com/dgraph-io/badger"
"github.com/golang/protobuf/proto"

"github.com/jaegertracing/jaeger/model"
"github.com/jaegertracing/jaeger/storage/spanstore"
Expand Down Expand Up @@ -101,7 +100,7 @@ func decodeValue(val []byte, encodeType byte) (*model.Span, error) {
return nil, err
}
case protoEncoding:
if err := proto.Unmarshal(val, &sp); err != nil {
if err := sp.Unmarshal(val); err != nil {
return nil, err
}
default:
Expand Down

0 comments on commit 5b9598d

Please sign in to comment.