Skip to content

Commit

Permalink
Remove unused attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinKuzma committed Aug 21, 2024
1 parent 9f0790d commit 2d4eef6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/service/router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/eset/grpc-rest-proxy/pkg/service/transformer"

jErrors "github.com/juju/errors"
"google.golang.org/protobuf/reflect/protoregistry"
)

type Match struct {
Expand All @@ -20,8 +19,6 @@ type Match struct {

type Router struct {
routesByMethod map[MethodType][]routeMatcher
// resolver is used to resolve any types that are unknown to proxy.
typeResolver *protoregistry.Types
}

func NewRouter() *Router {
Expand Down Expand Up @@ -113,7 +110,3 @@ func (r *Router) Push(route *Route) error {
r.routesByMethod[route.method] = routes
return nil
}

func (r *Router) Resolver() *protoregistry.Types {
return r.typeResolver
}

0 comments on commit 2d4eef6

Please sign in to comment.