fix wrong CreateMode value

This commit is contained in:
york yao 2017-01-26 20:01:15 +08:00
parent e297d2677f
commit c4cee4d79e
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ export function createClient(connectionString: string, options?: Partial<Option>
export const CreateMode: {
PERSISTENT: number,
PERSISTENT_SEQUENTIAL: number,
EPHEMERA: number,
EPHEMERAL: number,
EPHEMERAL_SEQUENTIAL: number,
};

View File

@ -64,7 +64,7 @@ const client = zookeeper.createClient(
client.create(
'/test/demo',
new Buffer('data'),
zookeeper.CreateMode.EPHEMERA,
zookeeper.CreateMode.EPHEMERAL,
function (error: Error, path) {
if (error) {
console.log(error.stack);