diff --git a/sample/src/main/java/com/trendyol/transmission/counter/Holder.kt b/sample/src/main/java/com/trendyol/transmission/counter/Holder.kt index 223a4a2..21da834 100644 --- a/sample/src/main/java/com/trendyol/transmission/counter/Holder.kt +++ b/sample/src/main/java/com/trendyol/transmission/counter/Holder.kt @@ -8,11 +8,10 @@ import com.trendyol.transmission.transformer.request.computation.ComputationRegi import com.trendyol.transmission.transformer.request.computation.computations import com.trendyol.transmission.transformer.request.computation.register import com.trendyol.transmission.transformer.request.computationWithArgs -import com.trendyol.transmission.transformer.request.identity -val lookUpAndReturn = Contracts.computationWithArgs("lookupAndReturn") +val lookUpAndReturn = Contracts.computationWithArgs() -class Holder : Transformer(Contracts.identity("master")) { +class Holder : Transformer() { data class TestCounter(val value: Int) : Transmission.Data diff --git a/sample/src/main/java/com/trendyol/transmission/counter/Worker.kt b/sample/src/main/java/com/trendyol/transmission/counter/Worker.kt index dd8c758..720a052 100644 --- a/sample/src/main/java/com/trendyol/transmission/counter/Worker.kt +++ b/sample/src/main/java/com/trendyol/transmission/counter/Worker.kt @@ -4,10 +4,8 @@ import com.trendyol.transmission.transformer.Transformer import com.trendyol.transmission.transformer.handler.HandlerRegistry import com.trendyol.transmission.transformer.handler.handlers import com.trendyol.transmission.transformer.handler.onSignal -import com.trendyol.transmission.transformer.request.Contracts -import com.trendyol.transmission.transformer.request.identity -class Worker(val id: String) : Transformer(Contracts.identity("$id")) { +class Worker(val id: String) : Transformer() { override val handlers: HandlerRegistry = handlers { onSignal {