Skip to content

Commit

Permalink
rename to CRT*
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewFossAWS committed May 9, 2024
1 parent 1c7f3c9 commit 1c7111a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
import AwsCommonRuntimeKit

/// Wrapper for CRTAWSEndpointResolvedEndpoint
public class EndpointsResolvedEndpoint {
public class CRTResolvedEndpoint {

let crtResolvedEndpoint: AwsCommonRuntimeKit.ResolvedEndpoint

init(crtResolvedEndpoint: AwsCommonRuntimeKit.ResolvedEndpoint) {
self.crtResolvedEndpoint = crtResolvedEndpoint
}

public func getType() -> EndpointsResolvedEndpointType {
EndpointsResolvedEndpointType(crtType: crtResolvedEndpoint)
public func getType() -> CRTResolvedEndpointType {
CRTResolvedEndpointType(crtType: crtResolvedEndpoint)
}

public func getError() -> String? {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import AwsCommonRuntimeKit

/// Wrapper for CRTAWSEndpointsResolvedEndpointType
public enum EndpointsResolvedEndpointType {
public enum CRTResolvedEndpointType {
case error
case endpoint

Expand Down
4 changes: 2 additions & 2 deletions Sources/ClientRuntime/Endpoints/EndpointsRuleEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ public class EndpointsRuleEngine {
crtEngine = try AwsCommonRuntimeKit.EndpointsRuleEngine(partitions: partitions, ruleSet: ruleSet)
}

public func resolve(context: EndpointsRequestContext) throws -> EndpointsResolvedEndpoint? {
public func resolve(context: EndpointsRequestContext) throws -> CRTResolvedEndpoint? {
let crtResolvedEndpoint = try crtEngine.resolve(context: context.toCRT())
return EndpointsResolvedEndpoint(crtResolvedEndpoint: crtResolvedEndpoint)
return CRTResolvedEndpoint(crtResolvedEndpoint: crtResolvedEndpoint)
}
}

0 comments on commit 1c7111a

Please sign in to comment.