File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public function get(): ConnectionAdapterInterface
55
55
$ this ->connections ->attach ($ this ->makeNewConnection ());
56
56
return $ this ->get ();
57
57
}
58
- return $ this ->retryWithDelay ();
58
+ return await ( $ this ->retryWithDelay () );
59
59
}
60
60
61
61
return $ connection ;
@@ -76,7 +76,7 @@ protected function makeNewConnection(): ConnectionAdapterInterface
76
76
return ($ this ->connectionFactory )();
77
77
}
78
78
79
- protected function retryWithDelay (Deferred $ deferred = null ): ConnectionAdapterInterface
79
+ protected function retryWithDelay (Deferred $ deferred = null ): \ React \ Promise \ Promise
80
80
{
81
81
if ($ this ->retryLimit !== null && $ this ->retryLimit < 1 ) {
82
82
throw new ConnectionPoolException ('No available connection to use ' );
@@ -106,6 +106,6 @@ protected function retryWithDelay(Deferred $deferred = null): ConnectionAdapterI
106
106
$ this ->retryWithDelay ($ deferred );
107
107
});
108
108
109
- return await ( $ deferred ->promise () );
109
+ return $ deferred ->promise ();
110
110
}
111
- }
111
+ }
You can’t perform that action at this time.
0 commit comments