mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
fix wrong CreateMode value
This commit is contained in:
Vendored
+1
-1
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user