Perform `git gc` on an interval basis
Reworked from 9f920f5d4639168302ffd9f2eef2c9e14bc5ea8d.
Instead of performing a git gc on every fetch, do it on an interval basis.
4 files changed
+51
-5
1cab036c
→
19328a86
modified crates/radicle-cli/examples/rad-config.md
@@ -47,6 +47,7 @@ $ rad config
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle-node/src/runtime.rs
@@ -242,6 +242,7 @@ impl Runtime {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle-node/src/worker.rs
@@ -5,6 +5,7 @@ mod upload_pack;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -25,6 +26,7 @@ pub use radicle_protocol::worker::{
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -67,6 +69,8 @@ pub struct FetchConfig {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -80,6 +84,7 @@ struct Worker {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -210,6 +215,7 @@ impl Worker {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -236,11 +242,22 @@ impl Worker {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -276,6 +293,7 @@ impl Pool {
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle/src/node/config.rs
@@ -137,6 +137,9 @@ pub struct Limits {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -585,6 +588,29 @@ impl From<LimitGossipMaxAge> for LocalDuration {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|