Skip to content

Commit d8b7b52

Browse files
authored
fix: storing ingredients in cigaretteSmokers in arrayList (#37)
1 parent 3cd2d36 commit d8b7b52

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cigaretteSmokers/src/main/kotlin/ac/at/uibk/dps/dapr/cigarette/arbiter/ArbiterActorImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ArbiterActorImpl(runtimeContext: ActorRuntimeContext<ArbiterActorImpl>, ac
1414

1515
val client: DaprClient = DaprClientBuilder().build()
1616

17-
val ingredients = listOf(0, 1, 2)
17+
val ingredients = arrayListOf(0, 1, 2)
1818
var count = 0
1919

2020
var metricRegistry = CigaretteSmokers.provideMetricRegistry()
@@ -29,7 +29,7 @@ class ArbiterActorImpl(runtimeContext: ActorRuntimeContext<ArbiterActorImpl>, ac
2929
++count
3030
metricRegistry.counter("arbiter.rounds").inc()
3131

32-
val provide = ingredients.toMutableList()
32+
val provide = ArrayList(ingredients)
3333
provide.remove(provide.random())
3434

3535
now = Clock.System.now()

0 commit comments

Comments
 (0)