transport: impl Service for Channel instead of GrpcService (#482)
* transport: impl Service for Channel instead of GrpcService This adds tower::Service impl for tonic::transport::Channel and removes GrpcService impl declaration. Channel still implements GrpcService, thanks to the general impl declaration of GrpcService for types who implement Service. Fixes #481. * examples: stop using GrpcService to avoid ambiguity * examples: add timeout example
This commit is contained in:
@@ -74,6 +74,14 @@ path = "src/tower/server.rs"
|
||||
name = "tower-client"
|
||||
path = "src/tower/client.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "timeout-server"
|
||||
path = "src/timeout/server.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "timeout-client"
|
||||
path = "src/timeout/client.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "multiplex-server"
|
||||
path = "src/multiplex/server.rs"
|
||||
|
||||
Reference in New Issue
Block a user