Skip to content

Commit

Permalink
update swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
MacOMNI committed Jan 13, 2025
1 parent 261bfc4 commit e116f60
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public enum BlockchainDataProviderError: Error, Equatable {
case uncanonical(hash: Data32)
}

public actor BlockchainDataProvider: Sendable {
public actor BlockchainDataProvider {
public private(set) var bestHead: HeadInfo
public private(set) var finalizedHead: HeadInfo
private let dataProvider: BlockchainDataProviderProtocol
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Utils

public actor InMemoryDataProvider: Sendable {
public actor InMemoryDataProvider {
public private(set) var heads: Set<Data32>
public private(set) var finalizedHead: Data32

Expand Down
2 changes: 1 addition & 1 deletion Blockchain/Sources/Blockchain/State/StateTrie.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public enum StateTrieError: Error {
case invalidParent
}

public actor StateTrie: Sendable {
public actor StateTrie {
private let backend: StateBackendProtocol
public private(set) var rootHash: Data32
private var nodes: [Data: TrieNode] = [:]
Expand Down
2 changes: 1 addition & 1 deletion Node/Sources/Node/NetworkingProtocol/PeerManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public struct PeerInfo: Sendable {
// - distinguish between connect peers and offline peers
// - peer reputation
// - purge offline peers
public actor PeerManager: Sendable {
public actor PeerManager {
private let eventBus: EventBus

public private(set) var peers: [Data: PeerInfo] = [:]
Expand Down
2 changes: 1 addition & 1 deletion Node/Sources/Node/NetworkingProtocol/SyncManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ enum SyncStatus {
// - sync peer rotation
// - fast sync mode (no verification)
// - re-enter to bulk sync mode if new peer with better head is discovered
public actor SyncManager: Sendable {
public actor SyncManager {
private let blockchain: Blockchain
private let network: Network
private let peerManager: PeerManager
Expand Down

0 comments on commit e116f60

Please sign in to comment.