Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Hellblazer committed Feb 10, 2024
1 parent 8c00314 commit f9812d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ public void certify() {
context().certify();
}

@Override
public Transitions election() {
return RECONFIGURE;
}

@Override
public Transitions gathered() {
return CERTIFICATION;
Expand All @@ -62,11 +57,6 @@ public void assembly() {
context().gather();
}

@Override
public Transitions election() {
return RECONFIGURE;
}

@Override
public Transitions gathered() {
return NOMINATION;
Expand Down Expand Up @@ -97,11 +87,6 @@ public Transitions complete() {
return null;
}

@Override
public Transitions election() {
return null;
}

@Override
public Transitions failed() {
return null;
Expand Down Expand Up @@ -162,10 +147,6 @@ default Transitions complete() {
return Reconfigure.RECONFIGURE;
}

default Transitions election() {
return null;
}

default Transitions failed() {
return Reconfigure.PROTOCOL_FAILURE;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ public void offer(Reassemble reassembly) {
}

public boolean offer(Transaction txn) {
if (!draining.get()) {
return processing.offer(txn);
} else {
if (draining.get()) {
return false;
}

return processing.offer(txn);
}

public void offer(Validate generateValidation) {
Expand Down

0 comments on commit f9812d7

Please sign in to comment.