Skip to content

Commit 7dbabed

Browse files
committed
Simplified the do server client example.
1 parent a07445b commit 7dbabed

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/do-server-client/src/server.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@ use worker::*;
22

33
#[durable_object]
44
pub struct Server {
5-
state: State,
65
counter: u32,
76
}
87

98
#[durable_object]
109
impl DurableObject for Server {
1110
fn new(state: State, _env: Env) -> Self {
12-
Self { state, counter: 0 }
11+
Self { counter: 0 }
1312
}
1413

1514
// URL /{left}+{right}

0 commit comments

Comments
 (0)