From b9cb68b7c0df1eb5147575a0a0f3ebf0b8d4bcac Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Tue, 6 Jun 2023 08:38:19 +0100 Subject: [PATCH] fix: Correct broken InRegion configuration --- src/Config/Configurations/InRegion.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Config/Configurations/InRegion.php b/src/Config/Configurations/InRegion.php index 46e76ab7..efcfdf45 100644 --- a/src/Config/Configurations/InRegion.php +++ b/src/Config/Configurations/InRegion.php @@ -21,7 +21,7 @@ class InRegion extends Configuration * improvements we identify for default configurations. * * @param ILoggerFactory|null $loggerFactory - * @return Laptop + * @return InRegion */ public static function latest(?ILoggerFactory $loggerFactory = null): Laptop { @@ -33,13 +33,13 @@ public static function latest(?ILoggerFactory $loggerFactory = null): Laptop * in future releases of the SDK. * * @param ILoggerFactory|null $loggerFactory - * @return Laptop + * @return InRegion */ - public static function v1(?ILoggerFactory $loggerFactory = null): Laptop + public static function v1(?ILoggerFactory $loggerFactory = null): InRegion { $loggerFactory = $loggerFactory ?? new NullLoggerFactory(); $grpcConfig = new StaticGrpcConfiguration(1100); - $transportStrategy = new StaticTransportStrategy(null, $grpcConfig, $loggerFactory, self::$maxIdleMillis); - return new Laptop($loggerFactory, $transportStrategy); + $transportStrategy = new StaticTransportStrategy($grpcConfig, $loggerFactory, self::$maxIdleMillis); + return new self($loggerFactory, $transportStrategy); } }