File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
test-services/src/main/kotlin/dev/restate/sdk/testservices Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,19 +22,19 @@ class KillTestImpl {
2222 // This will ensure that we have a call tree that is two calls deep and has a pending invocation
2323 // in the inbox:
2424 // startCallTree --> recursiveCall --> recursiveCall:inboxed
25- override suspend fun startCallTree (context : Context ) {
26- KillTestSingletonClient .fromContext(context, " " ).recursiveCall().await()
25+ override suspend fun startCallTree (context : ObjectContext ) {
26+ KillTestSingletonClient .fromContext(context, context.key() ).recursiveCall().await()
2727 }
2828 }
2929
3030 class SingletonImpl : KillTest .Singleton {
3131 override suspend fun recursiveCall (context : ObjectContext ) {
3232 val awakeable = context.awakeable(Serde .RAW )
33- AwakeableHolderClient .fromContext(context, " kill " ).send().hold(awakeable.id)
33+ AwakeableHolderClient .fromContext(context, context.key() ).send().hold(awakeable.id)
3434
3535 awakeable.await()
3636
37- KillTestSingletonClient .fromContext(context, " " ).recursiveCall().await()
37+ KillTestSingletonClient .fromContext(context, context.key() ).recursiveCall().await()
3838 }
3939
4040 override suspend fun isUnlocked (context : ObjectContext ) {
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ import dev.restate.sdk.kotlin.Context
1313import dev.restate.sdk.kotlin.ObjectContext
1414
1515interface KillTest {
16- @Service (name = " KillTestRunner" )
16+ @VirtualObject (name = " KillTestRunner" )
1717 interface Runner {
18- @Handler suspend fun startCallTree (context : Context )
18+ @Handler suspend fun startCallTree (context : ObjectContext )
1919 }
2020
2121 @VirtualObject(name = " KillTestSingleton" )
You can’t perform that action at this time.
0 commit comments