Skip to content

Commit

Permalink
style: put this out of the scope
Browse files Browse the repository at this point in the history
  • Loading branch information
null8626 committed Jan 2, 2024
1 parent 68d20cf commit ee62172
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/autoposter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,9 @@ impl Autoposter {
Self {
thread: spawn(async move {
loop {
data.sem.acquire().await.unwrap().forget();

{
data.sem.acquire().await.unwrap().forget();
let lock = data.stats.lock().await;
let _ = client.post_stats(&lock).await;
};
Expand Down

0 comments on commit ee62172

Please sign in to comment.