coreos/etcd — pull request #227 by xiangli-cmu (2013-10-14 05:13:54+00:00)
Title: refactor remove the extra function

The `URLs` and `PeerURLs` share the same logic, expect one function call.
Combine them by using function pointer.