Skip to content

Commit 40eec20

Browse files
nazar-pctomusdrw
andauthored
Fix typos (#587)
* Fix typos * Fix request.sender * cargo fmt --all Co-authored-by: Tomasz Drwięga <[email protected]>
1 parent 454cf5d commit 40eec20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pubsub/examples/pubsub.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn main() {
3939
// or drop(subscriber)
4040

4141
loop {
42-
if is_done.load(atomic::Ordering::AcqRel) {
42+
if is_done.load(atomic::Ordering::SeqCst) {
4343
return;
4444
}
4545

@@ -56,7 +56,7 @@ fn main() {
5656
}),
5757
("remove_hello", move |_id: SubscriptionId, _| {
5858
println!("Closing subscription");
59-
is_done2.store(true, atomic::Ordering::AcqRel);
59+
is_done2.store(true, atomic::Ordering::SeqCst);
6060
futures::future::ok(Value::Bool(true))
6161
}),
6262
);

0 commit comments

Comments
 (0)