Skip to content

Commit

Permalink
Merge pull request GoogleCloudPlatform#1194 from maqiuyujoyce/202402-…
Browse files Browse the repository at this point in the history
…fix-mockapikeys

Fix MockService for mockapikeys
  • Loading branch information
google-oss-prow[bot] authored Feb 6, 2024
2 parents ed86845 + 71979b7 commit 6d8cd9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mockgcp/mockapikeys/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ package mockapikeys

import (
"context"
"net/http"

"github.com/GoogleCloudPlatform/k8s-config-connector/mockgcp/common"
"github.com/GoogleCloudPlatform/k8s-config-connector/mockgcp/common/operations"
Expand Down Expand Up @@ -59,7 +60,7 @@ func (s *MockService) Register(grpcServer *grpc.Server) {
pb.RegisterApiKeysServer(grpcServer, s.v2)
}

func (s *MockService) NewHTTPMux(ctx context.Context, conn *grpc.ClientConn) (*runtime.ServeMux, error) {
func (s *MockService) NewHTTPMux(ctx context.Context, conn *grpc.ClientConn) (http.Handler, error) {
mux := runtime.NewServeMux()

if err := pb.RegisterApiKeysHandler(ctx, mux, conn); err != nil {
Expand Down

0 comments on commit 6d8cd9e

Please sign in to comment.