mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
feat(microservices): migrate redis transporter to internally use ioredis package
This commit is contained in:
@@ -34,7 +34,7 @@ describe('Disconnected client', () => {
|
||||
.send({
|
||||
transport: Transport.REDIS,
|
||||
options: {
|
||||
url: 'redis://localhost:3333',
|
||||
port: '3333',
|
||||
},
|
||||
})
|
||||
.expect(408);
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
Controller,
|
||||
InternalServerErrorException,
|
||||
Post,
|
||||
RequestTimeoutException,
|
||||
RequestTimeoutException
|
||||
} from '@nestjs/common';
|
||||
import { ClientProxyFactory } from '@nestjs/microservices';
|
||||
import { Observable, throwError } from 'rxjs';
|
||||
@@ -24,7 +24,8 @@ export class DisconnectedClientController {
|
||||
return throwError(() =>
|
||||
code === 'ECONNREFUSED' ||
|
||||
code === 'CONN_ERR' ||
|
||||
code === 'CONNECTION_REFUSED'
|
||||
code === 'CONNECTION_REFUSED' ||
|
||||
error.message === 'Connection is closed.'
|
||||
? new RequestTimeoutException('ECONNREFUSED')
|
||||
: new InternalServerErrorException(),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user