etcdserver: add publish func
Merge pull request #1192 from unihorn/140

etcdserver: add publish func