mirror of
https://github.com/GayPizzaSpecifications/stable-diffusion-rpc.git
synced 2025-08-09 16:11:34 +00:00
Split out worker related things to a separate service definition.
This commit is contained in:
@ -20,6 +20,22 @@ class StableDiffusionRpcClient(val channel: Channel) {
|
||||
ModelServiceGrpcKt.ModelServiceCoroutineStub(channel)
|
||||
}
|
||||
|
||||
val hostModelService: HostModelServiceGrpc.HostModelServiceStub by lazy {
|
||||
HostModelServiceGrpc.newStub(channel)
|
||||
}
|
||||
|
||||
val hostModelServiceBlocking: HostModelServiceGrpc.HostModelServiceBlockingStub by lazy {
|
||||
HostModelServiceGrpc.newBlockingStub(channel)
|
||||
}
|
||||
|
||||
val hostModelServiceFuture: HostModelServiceGrpc.HostModelServiceFutureStub by lazy {
|
||||
HostModelServiceGrpc.newFutureStub(channel)
|
||||
}
|
||||
|
||||
val hostModelServiceCoroutine: HostModelServiceGrpcKt.HostModelServiceCoroutineStub by lazy {
|
||||
HostModelServiceGrpcKt.HostModelServiceCoroutineStub(channel)
|
||||
}
|
||||
|
||||
val imageGenerationService: ImageGenerationServiceGrpc.ImageGenerationServiceStub by lazy {
|
||||
ImageGenerationServiceGrpc.newStub(channel)
|
||||
}
|
||||
|
Reference in New Issue
Block a user