Skip to content

Commit

Permalink
fix: wrap HashMap in Mutex
Browse files Browse the repository at this point in the history
  • Loading branch information
tippfehlr committed Feb 25, 2024
1 parent 1525103 commit 5cad92e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ async fn main() -> std::io::Result<()> {
.route("/{project}/{container}", web::get().to(webhook))
.route("/{project}/{container}", web::post().to(webhook))
.app_data(web::Data::new(State {
currently_updating: HashMap::new(),
currently_updating: Mutex::new(HashMap::new()),
}))
})
.bind(("0.0.0.0", 8537))?
Expand Down

0 comments on commit 5cad92e

Please sign in to comment.