New Discovery algorithm: Split the process function even further
authorOlivier Goffart <ogoffart@woboq.com>
Tue, 9 Oct 2018 10:49:21 +0000 (12:49 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:07 +0000 (10:58 +0100)
commitef542ac83dce295eb64093c88645a346c132b35a
treedbedfd22e4e0d853d76a6563a17bfc6a79fca225
parentfc69dda246f0406decdb8958fc0561b2846fad7c
New Discovery algorithm: Split the process function even further

Move the finialization in its own function.
This allow to save a bit of code duplication.

Also change the order of the parameter in the constructor for consistency
src/libsync/discovery.cpp
src/libsync/discovery.h