Skip to content

Commit

Permalink
Remove unnecessary cloning (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aursen authored Sep 15, 2024
1 parent 64601ca commit 3757b0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
2 changes: 1 addition & 1 deletion programs/thread/src/instructions/thread_exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ pub fn handler(ctx: Context<ThreadExec>) -> Result<()> {
}

// If the worker is in the pool, debit from the thread account and payout to the worker's fee account.
if pool.clone().into_inner().workers.contains(&worker.key()) {
if pool.workers.contains(&worker.key()) {
thread.sub_lamports(thread.fee)?;
fee.add_lamports(thread.fee)?;
}
Expand Down
17 changes: 0 additions & 17 deletions programs/thread/src/state/crate_info.rs

This file was deleted.

0 comments on commit 3757b0d

Please sign in to comment.