Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Instance share for API
Browse files Browse the repository at this point in the history
  • Loading branch information
soner-yuksel committed Jun 14, 2021
1 parent 2fd2f11 commit a65b20d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Client/Frontend/Sync/BraveCore/Bookmarks/Bookmarkv2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ private let log = Logger.browserLogger
class Bookmarkv2: WebsitePresentable {
private let bookmarkNode: BookmarkNode
private var observer: BookmarkModelListener?
private static let bookmarksAPI = BraveBookmarksAPI()
private static let bookmarksAPI = BraveBookmarksAPI.shared

init(_ bookmarkNode: BookmarkNode) {
self.bookmarkNode = bookmarkNode
Expand Down
4 changes: 2 additions & 2 deletions Client/Frontend/Sync/BraveCore/BraveCoreMigrator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class BraveCoreMigrator {
private var bookmarkMigrationState: MigrationState = .notStarted
private var historyMigrationState: MigrationState = .notStarted

private let bookmarksAPI = BraveBookmarksAPI()
private let historyAPI = BraveHistoryAPI()
private let bookmarksAPI = BraveBookmarksAPI.shared
private let historyAPI = BraveHistoryAPI.shared
private let dataImportExporter = BraveCoreImportExportUtility()
private var bookmarkObserver: BookmarkModelListener?
private var historyObserver: HistoryServiceListener?
Expand Down
2 changes: 1 addition & 1 deletion Client/Frontend/Sync/BraveCore/History/Historyv2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class Historyv2: WebsitePresentable {
// MARK: Private

private let historyNode: HistoryNode
private static let historyAPI = BraveHistoryAPI()
private static let historyAPI = BraveHistoryAPI.shared

private func fetchHistoryTimePeriod(visited: Date?) -> Section? {
let todayOffset = 0
Expand Down

0 comments on commit a65b20d

Please sign in to comment.