Skip to content

Commit

Permalink
Make some symbols public
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Oct 19, 2023
1 parent 17b80cc commit cf1de27
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Sources/Soto/Extensions/S3/FileByteBufferAsyncSequence.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ import NIOPosix

/// An AsyncSequence that returns the contents of a file in fixed size ByteBuffers
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
struct FileByteBufferAsyncSequence: AsyncSequence {
typealias Element = ByteBuffer
public struct FileByteBufferAsyncSequence: AsyncSequence {
public typealias Element = ByteBuffer

let fileHandle: NIOFileHandle
let fileIO: NonBlockingFileIO
let chunkSize: Int
let byteBufferAllocator: ByteBufferAllocator
let eventLoop: EventLoop

init(
public init(
_ fileHandle: NIOFileHandle,
fileIO: NonBlockingFileIO,
chunkSize: Int,
Expand All @@ -40,15 +40,15 @@ struct FileByteBufferAsyncSequence: AsyncSequence {
self.eventLoop = eventLoop
}

struct AsyncIterator: AsyncIteratorProtocol {
public struct AsyncIterator: AsyncIteratorProtocol {
let fileHandle: NIOFileHandle
var offset: Int = 0
let chunkSize: Int
let fileIO: NonBlockingFileIO
let byteBufferAllocator: ByteBufferAllocator
let eventLoop: EventLoop

mutating func next() async throws -> ByteBuffer? {
public mutating func next() async throws -> ByteBuffer? {
let byteBuffer = try await self.fileIO.read(
fileHandle: self.fileHandle,
fromOffset: Int64(self.offset),
Expand Down
2 changes: 1 addition & 1 deletion Sources/Soto/Extensions/S3/S3+multipart.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ extension S3 {
self.value = value
}

var threadPool: NIOThreadPool {
public var threadPool: NIOThreadPool {
get async {
switch self.value {
case .singleton:
Expand Down

0 comments on commit cf1de27

Please sign in to comment.