fix: パッケージ名を修正 mapに格納するときのキー名を変更

This commit is contained in:
usbharu 2024-04-15 15:05:51 +09:00
parent 6e94629b65
commit 54b1cbde9c
Signed by: usbharu
GPG Key ID: 8CB1087135660B8D
5 changed files with 7 additions and 10 deletions

View File

@ -16,8 +16,6 @@
package dev.usbharu.owl.consumer package dev.usbharu.owl.consumer
import dev.usbharu.dev.usbharu.owl.consumer.TaskRequest
import dev.usbharu.dev.usbharu.owl.consumer.TaskRunner
import dev.usbharu.owl.* import dev.usbharu.owl.*
import dev.usbharu.owl.Uuid.UUID import dev.usbharu.owl.Uuid.UUID
import dev.usbharu.owl.common.property.PropertySerializeUtils import dev.usbharu.owl.common.property.PropertySerializeUtils

View File

@ -16,7 +16,6 @@
package dev.usbharu.owl.consumer package dev.usbharu.owl.consumer
import dev.usbharu.dev.usbharu.owl.consumer.TaskRunner
import dev.usbharu.owl.AssignmentTaskServiceGrpcKt import dev.usbharu.owl.AssignmentTaskServiceGrpcKt
import dev.usbharu.owl.SubscribeTaskServiceGrpcKt import dev.usbharu.owl.SubscribeTaskServiceGrpcKt
import dev.usbharu.owl.TaskResultServiceGrpcKt import dev.usbharu.owl.TaskResultServiceGrpcKt
@ -50,8 +49,7 @@ class StandaloneConsumer(
private val taskRunnerMap = ServiceLoader private val taskRunnerMap = ServiceLoader
.load(TaskRunner::class.java) .load(TaskRunner::class.java)
.associateBy { it::class.qualifiedName!! } .associateBy { it.name }
.filterNot { it.key.isBlank() }
private val consumer = Consumer( private val consumer = Consumer(
subscribeStub, subscribeStub,

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package dev.usbharu.dev.usbharu.owl.consumer package dev.usbharu.owl.consumer
import dev.usbharu.owl.common.property.PropertyValue import dev.usbharu.owl.common.property.PropertyValue
import java.time.Instant import java.time.Instant

View File

@ -14,7 +14,7 @@
* limitations under the License. * limitations under the License.
*/ */
package dev.usbharu.dev.usbharu.owl.consumer package dev.usbharu.owl.consumer
import dev.usbharu.owl.common.property.PropertyValue import dev.usbharu.owl.common.property.PropertyValue

View File

@ -14,8 +14,9 @@
* limitations under the License. * limitations under the License.
*/ */
package dev.usbharu.dev.usbharu.owl.consumer package dev.usbharu.owl.consumer
fun interface TaskRunner { interface TaskRunner {
suspend fun run(taskRequest: TaskRequest):TaskResult val name: String
suspend fun run(taskRequest: TaskRequest): TaskResult
} }