mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 00:11:01 +00:00
When importing settings, force setting for feed refresh interval to at least 5 seconds while LMDB is slow
This commit is contained in:
parent
93fddc6cf0
commit
162c1e0727
@ -47,7 +47,7 @@ impl Default for Settings {
|
|||||||
public_key: None,
|
public_key: None,
|
||||||
max_fps: 12,
|
max_fps: 12,
|
||||||
recompute_feed_periodically: true,
|
recompute_feed_periodically: true,
|
||||||
feed_recompute_interval_ms: 2000,
|
feed_recompute_interval_ms: 8000,
|
||||||
pow: 0,
|
pow: 0,
|
||||||
offline: false,
|
offline: false,
|
||||||
theme: Theme {
|
theme: Theme {
|
||||||
|
@ -152,6 +152,9 @@ where
|
|||||||
}
|
}
|
||||||
"feed_recompute_interval_ms" => {
|
"feed_recompute_interval_ms" => {
|
||||||
if let Ok(x) = value.parse::<u32>() {
|
if let Ok(x) = value.parse::<u32>() {
|
||||||
|
// Force longer intervals for currently slower LMDB:
|
||||||
|
if x<5000 { x = 5000; }
|
||||||
|
|
||||||
settings.feed_recompute_interval_ms = x;
|
settings.feed_recompute_interval_ms = x;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user