Skip to content

Commit

Permalink
| Update Holder and Worker Transformers for new Identity API
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitozgumus committed Sep 15, 2024
1 parent a60e1bf commit fa79a5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Int>("lookupAndReturn")
val lookUpAndReturn = Contracts.computationWithArgs<String, Int>()

class Holder : Transformer(Contracts.identity("master")) {
class Holder : Transformer() {

data class TestCounter(val value: Int) : Transmission.Data

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<CounterSignal.Lookup> {
Expand Down

0 comments on commit fa79a5f

Please sign in to comment.