Skip to content

Commit

Permalink
Upgrade and simplify protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
sj14 committed Jun 12, 2024
1 parent 223ff71 commit 734d93c
Show file tree
Hide file tree
Showing 31 changed files with 11 additions and 12,872 deletions.
1 change: 0 additions & 1 deletion Procfile

This file was deleted.

6 changes: 3 additions & 3 deletions decode/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strconv"
"strings"

"github.com/golang/protobuf/proto"
"github.com/sj14/multicode/decode/protodec"
"google.golang.org/protobuf/proto"
"google.golang.org/protobuf/types/known/anypb"
)

// Encoding handled by the decoding.
Expand Down Expand Up @@ -126,7 +126,7 @@ func (d *Decoder) Decode(input []byte) ([]byte, Encoding) {
return []byte{}, None
}

unmarshalled := &protodec.Empty{}
unmarshalled := &anypb.Any{}

if d.proto {
if err := proto.Unmarshal(input, unmarshalled); err == nil {
Expand Down
2 changes: 0 additions & 2 deletions decode/protodec/Makefile

This file was deleted.

23 changes: 0 additions & 23 deletions decode/protodec/example.go

This file was deleted.

Loading

0 comments on commit 734d93c

Please sign in to comment.