From 725d94baf3991f20578ef633124f7d80c6a9929a Mon Sep 17 00:00:00 2001 From: luke Date: Mon, 10 Jul 2017 22:56:43 +0100 Subject: [PATCH] Add back file private where needed --- Sources/Franz/Consumer.swift | 8 ++++---- Sources/Franz/Crypt/CRC32.swift | 2 +- Sources/Franz/Group.swift | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Sources/Franz/Consumer.swift b/Sources/Franz/Consumer.swift index 5bbcc7e..538462c 100644 --- a/Sources/Franz/Consumer.swift +++ b/Sources/Franz/Consumer.swift @@ -12,7 +12,7 @@ import Foundation Base consumer delegate. Used by SimpleConsumer. */ @objc public protocol ConsumerDelegate { - /**g + /** Called when the consumer has consumed a new Message - Parameter message: the returned message @@ -138,9 +138,9 @@ import Foundation open class Consumer: NSObject { internal var broker: Broker? - private var _topic: String - private var _partition: Int32 - private var _clientId: String + fileprivate var _topic: String + fileprivate var _partition: Int32 + fileprivate var _clientId: String internal init(topic: String, partition: Int32, clientId: String) { self._topic = topic diff --git a/Sources/Franz/Crypt/CRC32.swift b/Sources/Franz/Crypt/CRC32.swift index d29d9c7..70b31b5 100644 --- a/Sources/Franz/Crypt/CRC32.swift +++ b/Sources/Franz/Crypt/CRC32.swift @@ -139,7 +139,7 @@ func ==(lhs: CRC32, rhs: CRC32) -> Bool { } final class CRC32: Hashable { - private var initialized = false + fileprivate var initialized = false private(set) var crc: UInt32 = 0 var hashValue: Int { diff --git a/Sources/Franz/Group.swift b/Sources/Franz/Group.swift index 9f21846..a77869d 100644 --- a/Sources/Franz/Group.swift +++ b/Sources/Franz/Group.swift @@ -12,12 +12,12 @@ import Foundation Base class for all Client Groups. */ open class Group { - private var _broker: Broker - private var _clientId: String - private var _groupProtocol: GroupProtocol - private var _groupId: String - private var _generationId: Int32 - private var _version: ApiVersion = ApiVersion.defaultVersion + fileprivate var _broker: Broker + fileprivate var _clientId: String + fileprivate var _groupProtocol: GroupProtocol + fileprivate var _groupId: String + fileprivate var _generationId: Int32 + fileprivate var _version: ApiVersion = ApiVersion.defaultVersion private var _state: GroupState?