diff --git a/src/compressor.rs b/src/compressor.rs index 6c245aa..d34761d 100644 --- a/src/compressor.rs +++ b/src/compressor.rs @@ -1,3 +1,17 @@ +// Copyright 2018 New Vector Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + //! This is the actual compression algorithm. //! //! The algorithm attempts to make a tree of deltas for the state group maps. diff --git a/src/database.rs b/src/database.rs index e74012a..4efcbee 100644 --- a/src/database.rs +++ b/src/database.rs @@ -1,3 +1,17 @@ +// Copyright 2018 New Vector Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use fallible_iterator::FallibleIterator; use indicatif::{ProgressBar, ProgressStyle}; use postgres::{Connection, TlsMode}; diff --git a/src/main.rs b/src/main.rs index c567f3f..eff38f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,18 @@ +// Copyright 2018 New Vector Ltd +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + + //! This is a tool that attempts to further compress state maps within a //! Synapse instance's database. Specifically, it aims to reduce the number of //! rows that a given room takes up in the `state_groups_state` table.