Skip to content

Commit 2e7b1a8

Browse files
committed
fix(pubsub): correct clientId value
1 parent 7d6cecb commit 2e7b1a8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

handwritten/pubsub/src/message-stream.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import {Duration} from './temporal';
2727
import {ExponentialRetry} from './exponential-retry';
2828
import {DebugMessage} from './debug';
2929
import {logs as baseLogs} from './logs';
30+
import {randomUUID} from 'crypto';
3031

3132
/**
3233
* Loggers. Exported for unit tests.
@@ -395,7 +396,7 @@ export class MessageStream extends PassThrough {
395396
maxOutstandingBytes: this._subscriber.useLegacyFlowControl
396397
? 0
397398
: this._subscriber.maxBytes,
398-
clientId: 'node-pubsub',
399+
clientId: randomUUID().toString(),
399400
protocolVersion: 1, // Set protocol version to fulfill keepalive capabilities
400401
};
401402
const otherArgs = {

0 commit comments

Comments
 (0)