Compare commits
8 Commits
squah/conf
...
erikj/matu
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d12aacd34b | ||
|
|
47875bbf5d | ||
|
|
90afa17075 | ||
|
|
7f71389689 | ||
|
|
404de3c745 | ||
|
|
08d312b66d | ||
|
|
70b73489c0 | ||
|
|
4c4a93498f |
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
@@ -1,2 +0,0 @@
|
|||||||
# Automatically request reviews from the synapse-core team when a pull request comes in.
|
|
||||||
* @matrix-org/synapse-core
|
|
||||||
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -1104,7 +1104,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "synapse_auto_compressor"
|
name = "synapse_auto_compressor"
|
||||||
version = "0.1.2"
|
version = "0.1.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"clap",
|
"clap",
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ use clap::{crate_authors, crate_description, crate_name, crate_version, value_t,
|
|||||||
use indicatif::{ProgressBar, ProgressStyle};
|
use indicatif::{ProgressBar, ProgressStyle};
|
||||||
use rayon::prelude::*;
|
use rayon::prelude::*;
|
||||||
use state_map::StateMap;
|
use state_map::StateMap;
|
||||||
use std::{collections::BTreeMap, convert::TryInto, fs::File, io::Write, str::FromStr};
|
use std::{collections::BTreeMap, fs::File, io::Write, str::FromStr};
|
||||||
use string_cache::DefaultAtom as Atom;
|
use string_cache::DefaultAtom as Atom;
|
||||||
|
|
||||||
mod compressor;
|
mod compressor;
|
||||||
@@ -362,8 +362,8 @@ pub fn run(mut config: Config) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let Some(min) = config.min_saved_rows {
|
if let Some(min) = config.min_saved_rows {
|
||||||
let saving = original_summed_size.saturating_sub(compressed_summed_size);
|
let saving = (original_summed_size - compressed_summed_size) as i32;
|
||||||
if saving < min.try_into().unwrap_or(0) {
|
if saving < min {
|
||||||
warn!(
|
warn!(
|
||||||
"Only {} rows would be saved by this compression. Skipping output.",
|
"Only {} rows would be saved by this compression. Skipping output.",
|
||||||
saving
|
saving
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "synapse_auto_compressor"
|
name = "synapse_auto_compressor"
|
||||||
authors = ["William Ashton"]
|
authors = ["William Ashton"]
|
||||||
version = "0.1.2"
|
version = "0.1.1"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
[package.metadata.maturin]
|
[package.metadata.maturin]
|
||||||
|
|||||||
Reference in New Issue
Block a user