aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/com/drivergrp/core/rest.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/scala/com/drivergrp/core/rest.scala')
-rw-r--r--src/main/scala/com/drivergrp/core/rest.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/scala/com/drivergrp/core/rest.scala b/src/main/scala/com/drivergrp/core/rest.scala
index ebb2640..a08dc73 100644
--- a/src/main/scala/com/drivergrp/core/rest.scala
+++ b/src/main/scala/com/drivergrp/core/rest.scala
@@ -30,16 +30,16 @@ object rest {
this.majorVersion === otherVersion.majorVersion
}
- type Service = AnyRef
+ trait Service
trait ServiceTransport {
def sendRequest(authToken: AuthToken)(requestStub: HttpRequest): Future[Unmarshal[ResponseEntity]]
}
- trait ServiceDiscovery[T <: Service] {
+ trait ServiceDiscovery {
- def discover(serviceName: Name[Service], version: ServiceVersion): T
+ def discover[T <: Service](serviceName: Name[Service], version: ServiceVersion): T
}
class HttpRestServiceTransport(actorSystem: ActorSystem, executionContext: ExecutionContext,