Skip to content

Commit

Permalink
fix bad smell (#79)
Browse files Browse the repository at this point in the history
Co-authored-by: yuanyuan.liu <yuanyuan.liu@signalplus.com>
  • Loading branch information
shihuili1218 and yuanyuan.liu committed Jul 18, 2023
1 parent aef9b78 commit dbb973f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@
*/
package com.ofcoder.klein.consensus.paxos;

import java.util.Objects;
import java.util.concurrent.atomic.AtomicReference;

import com.ofcoder.klein.consensus.facade.Node;
import com.ofcoder.klein.consensus.paxos.core.ProposerImpl;
import com.ofcoder.klein.consensus.paxos.core.sm.MemberRegistry;
import com.ofcoder.klein.rpc.facade.Endpoint;

import java.util.Objects;

/**
* paxos node info.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ public class RuntimeAccessor {
public static AtomicReference<ProposerImpl.PrepareState> getSkipPrepare() {
return skipPrepare;
}

public static Proposer getProposer() {
return proposer;
}

public static Acceptor getAcceptor() {
return acceptor;
}
Expand Down

0 comments on commit dbb973f

Please sign in to comment.