Skip to content

Commit

Permalink
Make AWSEditHeadersMiddleware.init public (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler authored Nov 6, 2022
1 parent 089fa02 commit fee2fdb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
4 changes: 0 additions & 4 deletions Sources/SotoCore/Credential/MetaDataCredentialProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@
//===----------------------------------------------------------------------===//

import AsyncHTTPClient
#if compiler(>=5.6)
@preconcurrency import struct Foundation.Date
#else
import struct Foundation.Date
#endif
import class Foundation.DateFormatter
import class Foundation.JSONDecoder
import struct Foundation.Locale
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ public struct AWSEditHeadersMiddleware: AWSServiceMiddleware {

let edits: [HeaderEdit]

init(_ edits: [HeaderEdit]) {
public init(_ edits: [HeaderEdit]) {
self.edits = edits
}

init(_ edits: HeaderEdit...) {
public init(_ edits: HeaderEdit...) {
self.init(edits)
}

Expand Down
3 changes: 0 additions & 3 deletions Tests/SotoCoreTests/AWSRequestTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ import NIOHTTP1
import SotoSignerV4
import SotoTestUtils
import XCTest
#if compiler(>=5.6)
@preconcurrency import Foundation
#endif

class AWSRequestTests: XCTestCase {
struct E: AWSEncodableShape & Decodable {
Expand Down
6 changes: 1 addition & 5 deletions Tests/SotoCoreTests/DictionaryEncoderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,9 @@
//
//===----------------------------------------------------------------------===//

import Foundation
@testable import SotoCore
import XCTest
#if compiler(>=5.6)
@preconcurrency import Foundation
#else
import Foundation
#endif

class DictionaryEncoderTests: XCTestCase {
func assertEqual(_ e1: Any, _ e2: Any) {
Expand Down

0 comments on commit fee2fdb

Please sign in to comment.