Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function become_leader(zk,me) {
console.log(">>>>>>>>>>>>>>>>>>>>> I AM THE LEADER <<<<<<<<<<<<<<<<<<<<<<<<<<<");
zk.a_create("/chh/xxx/leader", me, ZooKeeper.ZOO_EPHEMERAL ,function (rc, error, path) {
});
}