mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-04-04 15:35:18 +00:00
Mark peer connected if FileAnnouncement RPC message received
This commit is contained in:
parent
5409d8f418
commit
5a48c5ba94
@ -89,6 +89,9 @@ pub struct SerialSyncController {
|
|||||||
|
|
||||||
/// Cache for storing and serving gossip messages.
|
/// Cache for storing and serving gossip messages.
|
||||||
file_location_cache: Arc<FileLocationCache>,
|
file_location_cache: Arc<FileLocationCache>,
|
||||||
|
|
||||||
|
/// Whether to find files from neighbors only.
|
||||||
|
neighbors_only: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl SerialSyncController {
|
impl SerialSyncController {
|
||||||
@ -115,6 +118,7 @@ impl SerialSyncController {
|
|||||||
ctx,
|
ctx,
|
||||||
store,
|
store,
|
||||||
file_location_cache,
|
file_location_cache,
|
||||||
|
neighbors_only: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user