replace std::vector for std::set to represent _hashes_to_remove, so as to avoid duplicates (suggested by Jo)

This commit is contained in:
csoler 2016-09-29 20:55:16 +02:00
parent 1fd624ccb4
commit b62b66a24c
2 changed files with 13 additions and 18 deletions

View file

@ -409,7 +409,7 @@ class p3turtle: public p3Service, public RsTurtle, public p3Config
std::map<TurtleVirtualPeerId,TurtleTunnelId> _virtual_peers ;
/// Hashes marked to be deleted.
std::vector<TurtleFileHash> _hashes_to_remove ;
std::set<TurtleFileHash> _hashes_to_remove ;
/// List of client services that have regitered.
std::list<RsTurtleClientService*> _registered_services ;