Skip to content

Commit

Permalink
fix: revert unnecessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
Marina-Sakai committed May 30, 2024
1 parent 9c3cb83 commit cf95bfc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion pkg/generic/generic.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ func (g *jsonThriftGeneric) PayloadCodecType() serviceinfo.PayloadCodec {

func (g *jsonThriftGeneric) PayloadCodec() remote.PayloadCodec {
return nil
//return g.codec
}

func (g *jsonThriftGeneric) GetMethod(req interface{}, method string) (*Method, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/generic/httpthrift_codec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func TestHttpThriftCodec(t *testing.T) {
test.Assert(t, htc.GetIDLServiceName() == "ExampleService")

rw := htc.GetMessageReaderWriter()
err, ok := rw.(error)
_, ok := rw.(error)
test.Assert(t, !ok)

htc.SetMethod(method.Name)
Expand Down
4 changes: 2 additions & 2 deletions pkg/generic/mapthrift_codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package generic

import (
"github.com/pkg/errors"

Check failure on line 20 in pkg/generic/mapthrift_codec.go

View workflow job for this annotation

GitHub Actions / benchmark-test

missing go.sum entry for module providing package github.com/pkg/errors (imported by github.com/cloudwego/kitex/pkg/generic); to add:

Check failure on line 20 in pkg/generic/mapthrift_codec.go

View workflow job for this annotation

GitHub Actions / unit-scenario-test

missing go.sum entry for module providing package github.com/pkg/errors (imported by github.com/cloudwego/kitex/pkg/generic); to add:

Check failure on line 20 in pkg/generic/mapthrift_codec.go

View workflow job for this annotation

GitHub Actions / compatibility-test (1.18, X64)

missing go.sum entry for module providing package github.com/pkg/errors (imported by github.com/cloudwego/kitex/pkg/generic); to add:

Check failure on line 20 in pkg/generic/mapthrift_codec.go

View workflow job for this annotation

GitHub Actions / compatibility-test (1.17, X64)

missing go.sum entry for module providing package github.com/pkg/errors (imported by github.com/cloudwego/kitex/pkg/generic); to add:

Check failure on line 20 in pkg/generic/mapthrift_codec.go

View workflow job for this annotation

GitHub Actions / compatibility-test (1.19.12, X64)

missing go.sum entry for module providing package github.com/pkg/errors (imported by github.com/cloudwego/kitex/pkg/generic); to add:

Check failure on line 20 in pkg/generic/mapthrift_codec.go

View workflow job for this annotation

GitHub Actions / compatibility-test (1.20.7, X64)

missing go.sum entry for module providing package github.com/pkg/errors (imported by github.com/cloudwego/kitex/pkg/generic); to add:

Check failure on line 20 in pkg/generic/mapthrift_codec.go

View workflow job for this annotation

GitHub Actions / compatibility-test (1.22, ARM64)

missing go.sum entry for module providing package github.com/pkg/errors (imported by github.com/cloudwego/kitex/pkg/generic); to add:

Check failure on line 20 in pkg/generic/mapthrift_codec.go

View workflow job for this annotation

GitHub Actions / compatibility-test (1.22, X64)

missing go.sum entry for module providing package github.com/pkg/errors (imported by github.com/cloudwego/kitex/pkg/generic); to add:

Check failure on line 20 in pkg/generic/mapthrift_codec.go

View workflow job for this annotation

GitHub Actions / compatibility-test (1.21, ARM64)

missing go.sum entry for module providing package github.com/pkg/errors (imported by github.com/cloudwego/kitex/pkg/generic); to add:

Check failure on line 20 in pkg/generic/mapthrift_codec.go

View workflow job for this annotation

GitHub Actions / compatibility-test (1.19.12, ARM64)

missing go.sum entry for module providing package github.com/pkg/errors (imported by github.com/cloudwego/kitex/pkg/generic); to add:

Check failure on line 20 in pkg/generic/mapthrift_codec.go

View workflow job for this annotation

GitHub Actions / compatibility-test (1.20.7, ARM64)

missing go.sum entry for module providing package github.com/pkg/errors (imported by github.com/cloudwego/kitex/pkg/generic); to add:

Check failure on line 20 in pkg/generic/mapthrift_codec.go

View workflow job for this annotation

GitHub Actions / compatibility-test (1.21, X64)

missing go.sum entry for module providing package github.com/pkg/errors (imported by github.com/cloudwego/kitex/pkg/generic); to add:

Check failure on line 20 in pkg/generic/mapthrift_codec.go

View workflow job for this annotation

GitHub Actions / compatibility-test (1.18, ARM64)

missing go.sum entry for module providing package github.com/pkg/errors (imported by github.com/cloudwego/kitex/pkg/generic); to add:

Check failure on line 20 in pkg/generic/mapthrift_codec.go

View workflow job for this annotation

GitHub Actions / compatibility-test (1.17, ARM64)

missing go.sum entry for module providing package github.com/pkg/errors (imported by github.com/cloudwego/kitex/pkg/generic); to add:

Check failure on line 20 in pkg/generic/mapthrift_codec.go

View workflow job for this annotation

GitHub Actions / windows-test

missing go.sum entry for module providing package github.com/pkg/errors (imported by github.com/cloudwego/kitex/pkg/generic); to add:
"sync/atomic"

"github.com/cloudwego/kitex/pkg/generic/descriptor"
Expand Down Expand Up @@ -74,8 +75,7 @@ func (c *mapThriftCodec) update() {
func (c *mapThriftCodec) GetMessageReaderWriter() interface{} {
svcDsc, ok := c.svcDsc.Load().(*descriptor.ServiceDescriptor)
if !ok {
return nil
//return nil, fmt.Errorf("get parser ServiceDescriptor failed")
return errors.New("get parser ServiceDescriptor failed")
}
var rw *thrift.StructReaderWriter
var err error
Expand Down

0 comments on commit cf95bfc

Please sign in to comment.