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?
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?