@Override
  protected void updatePeerStorage(MasterProcedureEnv env) throws ReplicationException {
    env.getReplicationPeerManager().enablePeer(peerId);
  }
The procedure for enabling a replication peer.
hbase-server/src/main/java/org/apache/hadoop/hbase/master/replication/EnablePeerProcedure.java