Skip to content

Commit

Permalink
Refactor docker-compose.yml and src/main.rs for improved resource all…
Browse files Browse the repository at this point in the history
…ocation and code readability
  • Loading branch information
ursisterbtw committed Dec 9, 2024
1 parent 3c57aec commit b763ba8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ services:
deploy:
resources:
limits:
cpus: "7.5"
memory: 8G
cpus: "12"
memory: 32G
healthcheck:
test: [CMD, supervisorctl, status, hash_hunter]
interval: 30s
timeout: 10s
retries: 3
ports:
- 8080:8080
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ fn main() {
&& final_address.ends_with(&end_pattern)
&& zero_count >= min_zeros
&& regex_pattern
.as_ref()
.map_or(true, |re| re.is_match(&final_address))
.as_ref().is_none_or(|re| re.is_match(&final_address))
{
// found a matching address
let address_with_prefix = format!("0x{}", final_address);
Expand Down

0 comments on commit b763ba8

Please sign in to comment.