Skip to content

Commit

Permalink
Add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 committed Feb 26, 2025
1 parent 07b05a8 commit 7aa43d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FirebaseVertexAI/Sources/Chat.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public final class Chat: Sendable {
}

private func appendHistory(contentsOf: [ModelContent]) {
historyLock.lock()
_history.append(contentsOf: contentsOf)
historyLock.unlock()
historyLock.withLock {
_history.append(contentsOf: contentsOf)
}
}

/// Sends a message using the existing history of this chat as context. If successful, the message
Expand Down
1 change: 1 addition & 0 deletions FirebaseVertexAI/Sources/FirebaseInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import Foundation

// TODO: Remove `@preconcurrency` when possible.
@preconcurrency import FirebaseAppCheckInterop
@preconcurrency import FirebaseAuthInterop
@preconcurrency import FirebaseCore
Expand Down

0 comments on commit 7aa43d5

Please sign in to comment.