Skip to content

Commit

Permalink
fix: rename py-runtime -> py_runtime to match proto linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AlmogBaku committed Feb 22, 2023
1 parent fb22c9c commit d0c3cbf
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
46 changes: 23 additions & 23 deletions api/proto/gen/python/py_runtime/v1alpha1/api_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions api/proto/gen/python/py_runtime/v1alpha1/api_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ def __init__(self, channel):
channel: A grpc.Channel.
"""
self.LoadProgram = channel.unary_unary(
'/runtime.v1alpha1.RuntimeService/LoadProgram',
'/py_runtime.v1alpha1.RuntimeService/LoadProgram',
request_serializer=py__runtime_dot_v1alpha1_dot_api__pb2.LoadProgramRequest.SerializeToString,
response_deserializer=py__runtime_dot_v1alpha1_dot_api__pb2.LoadProgramResponse.FromString,
)
self.ExecuteProgram = channel.unary_unary(
'/runtime.v1alpha1.RuntimeService/ExecuteProgram',
'/py_runtime.v1alpha1.RuntimeService/ExecuteProgram',
request_serializer=py__runtime_dot_v1alpha1_dot_api__pb2.ExecuteProgramRequest.SerializeToString,
response_deserializer=py__runtime_dot_v1alpha1_dot_api__pb2.ExecuteProgramResponse.FromString,
)
Expand Down Expand Up @@ -59,7 +59,7 @@ def add_RuntimeServiceServicer_to_server(servicer, server):
),
}
generic_handler = grpc.method_handlers_generic_handler(
'runtime.v1alpha1.RuntimeService', rpc_method_handlers)
'py_runtime.v1alpha1.RuntimeService', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))


Expand All @@ -79,7 +79,7 @@ def LoadProgram(request,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/runtime.v1alpha1.RuntimeService/LoadProgram',
return grpc.experimental.unary_unary(request, target, '/py_runtime.v1alpha1.RuntimeService/LoadProgram',
py__runtime_dot_v1alpha1_dot_api__pb2.LoadProgramRequest.SerializeToString,
py__runtime_dot_v1alpha1_dot_api__pb2.LoadProgramResponse.FromString,
options, channel_credentials,
Expand All @@ -96,7 +96,7 @@ def ExecuteProgram(request,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/runtime.v1alpha1.RuntimeService/ExecuteProgram',
return grpc.experimental.unary_unary(request, target, '/py_runtime.v1alpha1.RuntimeService/ExecuteProgram',
py__runtime_dot_v1alpha1_dot_api__pb2.ExecuteProgramRequest.SerializeToString,
py__runtime_dot_v1alpha1_dot_api__pb2.ExecuteProgramResponse.FromString,
options, channel_credentials,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
syntax = "proto3";

package runtime.v1alpha1;
package py_runtime.v1alpha1;

import "google/api/annotations.proto";
import "google/protobuf/timestamp.proto";
Expand Down
2 changes: 1 addition & 1 deletion pkg/runtimemanager/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
grpcRetry "github.com/grpc-ecosystem/go-grpc-middleware/retry"
"github.com/raptor-ml/raptor/api"
coreApi "github.com/raptor-ml/raptor/api/proto/gen/go/core/v1alpha1"
runtimeApi "github.com/raptor-ml/raptor/api/proto/gen/go/py-runtime/v1alpha1"
runtimeApi "github.com/raptor-ml/raptor/api/proto/gen/go/py_runtime/v1alpha1"
"github.com/raptor-ml/raptor/pkg/sdk"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials/local"
Expand Down

0 comments on commit d0c3cbf

Please sign in to comment.