Skip to content

Commit

Permalink
chore: publish 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuhvi committed Jun 24, 2024
1 parent d5e9804 commit 3a4c331
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mainline"
version = "2.0.0"
version = "2.0.1"
authors = ["nuh.dev"]
edition = "2018"
description = "Simple, robust, BitTorrent's Mainline DHT implementation"
Expand Down
4 changes: 3 additions & 1 deletion src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ impl Rpc {
put_queries: HashMap::new(),
closest_nodes: LruCache::new(NonZeroUsize::new(MAX_CACHED_BUCKETS).unwrap()),

last_table_refresh: Instant::now().checked_sub(REFRESH_TABLE_INTERVAL).unwrap_or_else(Instant::now),
last_table_refresh: Instant::now()
.checked_sub(REFRESH_TABLE_INTERVAL)
.unwrap_or_else(Instant::now),
last_table_ping: Instant::now(),
})
}
Expand Down

0 comments on commit 3a4c331

Please sign in to comment.