public boolean addPeer(final PeerId peer) {
        return this.peers.add(peer);
    }
Returns the peers total number.

@return total num of peers
jraft-core/src/main/java/com/alipay/sofa/jraft/conf/Configuration.java