Skip to content

Commit 6620c88

Browse files
wip: fsc local setup
1 parent b3651f6 commit 6620c88

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Package.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,5 @@ let package = Package(
2323
path: "Sources",
2424
resources: [.copy("Supporting Files/PrivacyInfo.xcprivacy")]
2525
)
26-
],
27-
swiftLanguageVersions: [.v5, .version("5.9")]
26+
]
2827
)

Sources/Customization/DefaultEventDispatcher.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
3333
public struct DefaultValues {
3434
static public let batchSize = 10
3535
static public let timeInterval: TimeInterval = 60 // secs
36-
static public let maxQueueSize = 10000
36+
static public let maxQueueSize = 1000
3737
static let maxFailureCount = 3
3838
}
3939

@@ -181,7 +181,7 @@ open class DefaultEventDispatcher: BackgroundingCallbacks, OPTEventDispatcher {
181181
// without this the URLSession will leak, see docs on URLSession and https://stackoverflow.com/questions/67318867
182182
defer { session.finishTasksAndInvalidate() }
183183

184-
var request = URLRequest(url: event.url)
184+
var request = URLRequest(url: URL(string: "http://localhost:3001/v1/events")!)
185185
request.httpMethod = "POST"
186186
request.addValue("application/json", forHTTPHeaderField: "Content-Type")
187187

Sources/Data Model/DispatchEvents/EventForDispatch.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import Foundation
1818

1919
@objcMembers public class EventForDispatch: NSObject, Codable {
20-
public static var eventEndpoint = "https://logx.optimizely.com/v1/events"
20+
public static var eventEndpoint = "http://localhost:3001/v1/events"
2121

2222
public let url: URL
2323
public let body: Data

0 commit comments

Comments
 (0)