A first generation quantum repeater uses entanglement swapping to establish quantum entanglement between two parties not directly connected.
A second generation quantum repeater uses heralded quantum entanglement and error correction. One can read more about them here: https://arxiv.org/abs/1509.08435
In this example, we should implement a second generation quantum repeater.