|
...
|
...
|
@@ -27,7 +27,7 @@ class Client |
|
|
|
*/
|
|
|
|
protected function serviceToPath(string $service): string
|
|
|
|
{
|
|
|
|
return '/'.ltrim(Str::replace('.', '/', $service), '/');
|
|
|
|
return '/' . ltrim(Str::replace('.', '/', $service), '/');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -107,7 +107,7 @@ class Client |
|
|
|
|
|
|
|
$retry = new Retry(function () use ($request, $options) {
|
|
|
|
return $this->guzzleHttp($request->getConfig())
|
|
|
|
->request($request->getMethod(), $request->getPath() ? : $this->serviceToPath($request->getService()),
|
|
|
|
->request($request->getMethod(), $request->getPath() ?: $this->serviceToPath($request->getService()),
|
|
|
|
$options);
|
|
|
|
}, function ($e) {
|
|
|
|
return $e instanceof ConnectException;
|
...
|
...
|
|