etcdserver: add publish func

for #1094 
you have these reversed