Skip to content

Commit 37f73ae

Browse files
Update src/lib.rs
Co-authored-by: Francesco Guardiani <francescoguard@gmail.com>
1 parent 646b9eb commit 37f73ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
//!
118118
//! - Specify that you want to create a Virtual Object by using the [`#[restate_sdk::object]` macro](restate_sdk_macros::object).
119119
//! - The first argument of each handler must be the [`ObjectContext`](crate::context::ObjectContext) parameter. Handlers with the `ObjectContext` parameter can write to the K/V state store. Only one handler can be active at a time per object, to ensure consistency.
120-
//! - You can retrieve the key of the object you are in via `ctx.key()`.
120+
//! - You can retrieve the key of the object you are in via [`ObjectContext.key`].
121121
//! - If you want to have a handler that executes concurrently to the others and doesn't have write access to the K/V state, add `#[shared]` to the handler definition in the trait.
122122
//! Shared handlers need to use the [`SharedObjectContext`](crate::context::SharedObjectContext).
123123
//! You can use these handlers, for example, to read K/V state and expose it to the outside world, or to interact with the blocking handler and resolve awakeables etc.

0 commit comments

Comments
 (0)