Skip to content

Commit 280eeb7

Browse files
committed
Remove is_commit_diff
1 parent 4213b49 commit 280eeb7

File tree

1 file changed

+1
-8
lines changed
  • magicblock-committor-service/src/tasks

1 file changed

+1
-8
lines changed

magicblock-committor-service/src/tasks/mod.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,17 +162,10 @@ pub struct CommitTask {
162162
pub allow_undelegation: bool,
163163
pub committed_account: CommittedAccount,
164164
base_account: Option<Account>,
165-
force_commit_state: bool,
165+
strategy: TaskStrategy,
166166
}
167167

168168
impl CommitTask {
169-
pub fn is_commit_diff(&self) -> bool {
170-
!self.force_commit_state
171-
&& self.committed_account.account.data.len()
172-
> CommitTaskBuilder::COMMIT_STATE_SIZE_THRESHOLD
173-
&& self.base_account.is_some()
174-
}
175-
176169
pub fn switch_to_buffer_strategy(mut self) -> Self {
177170
self.strategy = TaskStrategy::Buffer;
178171
self

0 commit comments

Comments
 (0)