Skip to content

Commit

Permalink
Fix typos (#587)
Browse files Browse the repository at this point in the history
* Fix typos

* Fix request.sender

* cargo fmt --all

Co-authored-by: Tomasz Drwięga <[email protected]>
  • Loading branch information
nazar-pc and tomusdrw authored Dec 9, 2020
1 parent 454cf5d commit 40eec20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pubsub/examples/pubsub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fn main() {
// or drop(subscriber)

loop {
if is_done.load(atomic::Ordering::AcqRel) {
if is_done.load(atomic::Ordering::SeqCst) {
return;
}

Expand All @@ -56,7 +56,7 @@ fn main() {
}),
("remove_hello", move |_id: SubscriptionId, _| {
println!("Closing subscription");
is_done2.store(true, atomic::Ordering::AcqRel);
is_done2.store(true, atomic::Ordering::SeqCst);
futures::future::ok(Value::Bool(true))
}),
);
Expand Down

0 comments on commit 40eec20

Please sign in to comment.