Skip to content

Commit

Permalink
fix: remove custom retryer (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
kneekey23 authored Aug 24, 2021
1 parent c5ee759 commit 623d073
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 130 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ public final class CRTAWSRetryStrategy {
self.allocator = allocator
}

public convenience init(fromProvider impl: CRTRetryStrategy,
allocator: Allocator = defaultAllocator) {
let wrapped = WrappedCRTRetryStrategy(impl: impl, allocator: allocator)
self.init(retryStrategy: &wrapped.rawValue, allocator: wrapped.allocator)
}

/// Creates an AWS Retryer implementing the correct retry strategy.
///
/// - Parameters:
Expand Down
10 changes: 0 additions & 10 deletions Source/AwsCommonRuntimeKit/io/retryer/CRTAWSRetryToken.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@ import AwsCIo
public final class CRTAWSRetryToken {
var rawValue: UnsafeMutablePointer<aws_retry_token>

public init(retryStrategy: CRTRetryStrategy, allocator: Allocator = defaultAllocator) {
let atomicVar = Atomic<Int>(1)
let retryStrategyPtr: UnsafeMutablePointer<CRTRetryStrategy> = fromPointer(ptr: retryStrategy)
let retryToken = aws_retry_token(allocator: allocator.rawValue,
retry_strategy: retryStrategy.rawValue,
ref_count: atomicVar.rawValue,
impl: retryStrategyPtr)
self.rawValue = fromPointer(ptr: retryToken)
}

public init(rawValue: UnsafeMutablePointer<aws_retry_token>,
allocator: Allocator = defaultAllocator) {
self.rawValue = rawValue
Expand Down
114 changes: 0 additions & 114 deletions Source/AwsCommonRuntimeKit/io/retryer/CRTRetryStrategy.swift

This file was deleted.

0 comments on commit 623d073

Please sign in to comment.