File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const kafka = require('node-rdkafka');
44const P = require ( 'bluebird' ) ;
55const bunyan = require ( 'bunyan' ) ;
66const _ = require ( 'lodash' ) ;
7- const TimeUuid = require ( 'cassandra- uuid' ) . TimeUuid ;
7+ const uuid = require ( 'uuid' ) ;
88const EventEmitter = require ( 'events' ) ;
99
1010const SSEResponse = require ( './SSEResponse' ) ;
@@ -105,7 +105,7 @@ class KafkaSSE {
105105 this . req = req ;
106106 this . res = res ;
107107 // Use x-request-id if it is set, otherwise create a new uuid.
108- this . id = this . req . headers [ 'x-request-id' ] || TimeUuid . now ( ) . toString ( ) ;
108+ this . id = this . req . headers [ 'x-request-id' ] || uuid ( ) ;
109109
110110 // Will be set to true for any call to this.disconnect().
111111 // This will be used to prevent consume loop from
Original file line number Diff line number Diff line change 3838 "dependencies" : {
3939 "bluebird" : " ^3.5.1" ,
4040 "bunyan" : " ^1.8.1" ,
41- "cassandra-uuid" : " ^0.0.2" ,
4241 "lodash" : " ^4.15.0" ,
4342 "node-rdkafka" : " ^2.3.4" ,
44- "safe-regex" : " ^1.1.0"
43+ "safe-regex" : " ^1.1.0" ,
44+ "uuid" : " ^3.3.2"
4545 },
4646 "devDependencies" : {
4747 "istanbul" : " ^0.4.4" ,
You can’t perform that action at this time.
0 commit comments