mirror of
https://github.com/0glabs/0g-storage-node.git
synced 2025-04-04 15:35:18 +00:00

* Change default concurrent sync threads * enhance log level in sync store * Add rwlock in sync store to avoid concurrency issue * enhance serial sync state machine log level * wrap Instant for debug purpose * add timestamp for connecting peers state * Select random peer to sync chunks * return sync peers states instead of connected peers only * Use tokio async RwLock for sync store
11 lines
236 B
Rust
11 lines
236 B
Rust
mod batcher;
|
|
pub mod batcher_random;
|
|
pub mod batcher_serial;
|
|
pub mod sync_store;
|
|
mod tx_store;
|
|
|
|
use std::time::Duration;
|
|
|
|
const INTERVAL_IDLE: Duration = Duration::from_secs(3);
|
|
const INTERVAL_ERROR: Duration = Duration::from_secs(10);
|