mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
fix(microservices): pass rmq connection options correctly to amqp-connection-manager
This commit is contained in:
@@ -140,7 +140,7 @@ export class ServerRMQ extends Server implements CustomTransportStrategy {
|
||||
public createClient<T = any>(): T {
|
||||
const socketOptions = this.getOptionsProp(this.options, 'socketOptions');
|
||||
return rmqPackage.connect(this.urls, {
|
||||
connectionOptions: socketOptions,
|
||||
connectionOptions: socketOptions?.connectionOptions,
|
||||
heartbeatIntervalInSeconds: socketOptions?.heartbeatIntervalInSeconds,
|
||||
reconnectTimeInSeconds: socketOptions?.reconnectTimeInSeconds,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user