We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 153f1f0 commit 9635189Copy full SHA for 9635189
worker-sandbox/src/shared_counter.rs
@@ -46,10 +46,8 @@ impl SharedDurableObject for SharedCounter {
46
TimeoutFuture::new(1_000).await;
47
48
*self.count.borrow_mut() += 15;
49
- self.state
50
- .storage()
51
- .put("count", *self.count.borrow())
52
- .await?;
+ let count = *self.count.borrow();
+ self.state.storage().put("count", count).await?;
53
54
Response::ok(format!(
55
"[durable_object]: self.count: {}, secret value: {}",
0 commit comments