Skip to content

Commit

Permalink
fix: forgot to save
Browse files Browse the repository at this point in the history
  • Loading branch information
KSXGitHub committed Nov 15, 2023
1 parent 433a344 commit 9315e7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/registry-mock/src/mock_instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ impl Drop for RegistryAnchor {

anchor.user_count.checked_sub(1).expect("decrement user_count");
if anchor.user_count > 0 {
anchor.save();
eprintln!(
"info: The mocked server is still used by {} users. Skip.",
anchor.user_count
Expand Down

0 comments on commit 9315e7f

Please sign in to comment.