Skip to content

Commit

Permalink
refactor: update Dump struct to use cloned port parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kremilly committed Dec 15, 2024
1 parent bc7b456 commit 7e61c9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/dump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ impl Dump {
let dump_file_path_clone = self.dump_file_path.clone();
let host_clone = self.host.clone();
let user_clone = self.user.clone();
let port_clone = self.port.clone();
let password_clone = self.password.clone();
let dbname_clone = self.dbname.clone();
let interval_clone = self.interval;
Expand All @@ -113,7 +114,7 @@ impl Dump {

let _dump = Dump {
host: host_clone.clone(),
port: 0,
port: port_clone.clone(),
user: user_clone.clone(),
password: password_clone.clone(),
dbname: dbname_clone.clone(),
Expand Down

0 comments on commit 7e61c9c

Please sign in to comment.