File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import { PostgresModuleOptions } from '../interfaces' ;
22import { DEFAULT_CONNECTION_NAME } from '../postgres.constants' ;
33import { Observable } from 'rxjs' ;
4- import { delay , retry , scan } from 'rxjs/operators' ;
4+ import { delay , retryWhen , scan } from 'rxjs/operators' ;
55import { randomUUID } from 'node:crypto' ;
66import { Logger } from '@nestjs/common' ;
77import { CircularDependencyException } from '../exceptions/circular-dependency.exception' ;
@@ -61,7 +61,7 @@ export function handleRetry(
6161) : < T > ( source : Observable < T > ) => Observable < T > {
6262 return < T > ( source : Observable < T > ) =>
6363 source . pipe (
64- retry ( { delay : ( e ) =>
64+ retryWhen ( ( e ) =>
6565 e . pipe (
6666 scan ( ( errorCount , error : Error ) => {
6767 logger . error (
@@ -77,7 +77,7 @@ export function handleRetry(
7777 } , 0 ) ,
7878 delay ( retryDelay ) ,
7979 ) ,
80- } ) ,
80+ ) ,
8181 ) ;
8282}
8383
You can’t perform that action at this time.
0 commit comments