Skip to content

Commit

Permalink
change region metadata provider to partitions loader
Browse files Browse the repository at this point in the history
  • Loading branch information
nihalpot authored and plazma-prizma committed Aug 14, 2023
1 parent 31ae54a commit ade9fa7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import com.amazonaws.auth.AWSCredentials;
import com.amazonaws.regions.Region;
import com.amazonaws.regions.RegionMetadata;
import com.amazonaws.regions.RegionMetadataFactory;
import com.amazonaws.partitions.PartitionsLoader;
import com.amazonaws.regions.Regions;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
Expand All @@ -38,7 +38,7 @@
class AuthenticationRequestParams {
private static final String VERSION_1 = "2020_10_22";
private static final String SERVICE_SCOPE = "kafka-cluster";
private static RegionMetadata regionMetadata = RegionMetadataFactory.create();
private static RegionMetadata regionMetadata = new RegionMetadata(new PartitionsLoader().build());

@NonNull
private final String version;
Expand Down

0 comments on commit ade9fa7

Please sign in to comment.