Skip to content

Commit

Permalink
Removed some commented-out code and put some back in
Browse files Browse the repository at this point in the history
  • Loading branch information
gazreese committed Sep 19, 2024
1 parent f3b7993 commit 065fcb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Example/FlagsmithClient/SwiftUIView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ struct SwiftUIView: View {
func subscribeToFlagUpdates() {
Task {
for await updatedFlags in flagsmith.flagStream {
// DispatchQueue.main.async {
DispatchQueue.main.async {
flags = updatedFlags
// }
}
}
}
}
Expand Down
2 changes: 0 additions & 2 deletions FlagsmithClient/Classes/Internal/SSEManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ final class SSEManager: NSObject, URLSessionDataDelegate, @unchecked Sendable {
}
}

// private var streamTask: Task<Void, Error>? = nil

/// Base `URL` used for requests.
private var _baseURL = URL(string: "https://realtime.flagsmith.com/")!
var baseURL: URL {
Expand Down

0 comments on commit 065fcb6

Please sign in to comment.