diff --git a/packages/actor_pinning/actor_pinning.pony b/packages/actor_pinning/actor_pinning.pony index 2652d30f11..69f9e3c96e 100644 --- a/packages/actor_pinning/actor_pinning.pony +++ b/packages/actor_pinning/actor_pinning.pony @@ -32,7 +32,7 @@ actor Main new create(env: Env) => _env = env _auth = PinUnpinActorAuth(env.root) - ActorPinning.pin(_auth) + ActorPinning.request_pin(_auth) check_pinned() be check_pinned() => @@ -51,7 +51,7 @@ actor Main end be done() => - ActorPinning.unpin(_auth) + ActorPinning.request_unpin(_auth) ``` ## Caveat diff --git a/test/full-program-tests/pinned-actor/main.pony b/test/full-program-tests/pinned-actor/main.pony index d5999b9262..d5e9cd73e3 100644 --- a/test/full-program-tests/pinned-actor/main.pony +++ b/test/full-program-tests/pinned-actor/main.pony @@ -10,7 +10,7 @@ actor Main new create(env: Env) => _env = env _auth = PinUnpinActorAuth(env.root) - ActorPinning.pin(_auth) + ActorPinning.request_pin(_auth) let interval: U64 = (10 * 1_000_000_000) / 10 let timers = Timers let timer = Timer(Tick(this, 1), interval, interval)