-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize GRPC method lookup; optimizations in protobuf decoding (#36)
- Loading branch information
Showing
6 changed files
with
42 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ct_rpc_scala/InProcessChannelBridge.scala → ...c_scala/grpc/InProcessChannelBridge.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
core/src/main/scala/org/ivovk/connect_rpc_scala/grpc/MethodName.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.ivovk.connect_rpc_scala.grpc | ||
|
||
import io.grpc.MethodDescriptor | ||
|
||
type Service = String | ||
type Method = String | ||
|
||
object MethodName { | ||
def apply(descriptor: MethodDescriptor[_, _]): MethodName = | ||
MethodName(descriptor.getServiceName, descriptor.getBareMethodName) | ||
} | ||
|
||
case class MethodName(service: Service, method: Method) { | ||
def fullyQualifiedName: String = s"$service/$method" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters