Tendrl / node-agent

A python agent local to every managed storage node in the sds cluster
GNU Lesser General Public License v2.1
4 stars 14 forks source link

Duplicated code for connecting to etcd? #862

Open dahorak opened 5 years ago

dahorak commented 5 years ago

There seems to be duplicated code for connecting to etcd database, for example in following files:

In the first file, there is similar code even twice in the same file - between lines 21-51 and later 121-156 - while the second occurrence slightly more robust, including error handling. What is the reason for the duplication? And why one of the part is more robust and contains also error handling, while the rest four occurrences not?