diff --git a/LICENSE b/LICENSE index b67d90910..9d9266484 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ Apache License same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright {} + Copyright 2019 TiKV Project Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/benches/benches.rs b/benches/benches.rs index b21fba329..913f5bed7 100644 --- a/benches/benches.rs +++ b/benches/benches.rs @@ -1,3 +1,5 @@ +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. + #![allow(dead_code)] // Due to criterion we need this to avoid warnings. #![cfg_attr(feature = "cargo-clippy", allow(clippy::let_and_return))] // Benches often artificially return values. Allow it. diff --git a/benches/suites/mod.rs b/benches/suites/mod.rs index f6e36f7ef..dcfcb9f7d 100644 --- a/benches/suites/mod.rs +++ b/benches/suites/mod.rs @@ -1,3 +1,5 @@ +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. + mod raft; pub use self::raft::*; mod raw_node; diff --git a/benches/suites/progress.rs b/benches/suites/progress.rs index ec20c602d..3a600b066 100644 --- a/benches/suites/progress.rs +++ b/benches/suites/progress.rs @@ -1,3 +1,5 @@ +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. + use criterion::{Bencher, Criterion}; use raft::Progress; diff --git a/benches/suites/progress_set.rs b/benches/suites/progress_set.rs index 2beea2a2e..b86ee457d 100644 --- a/benches/suites/progress_set.rs +++ b/benches/suites/progress_set.rs @@ -1,3 +1,5 @@ +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. + use crate::DEFAULT_RAFT_SETS; use criterion::{Bencher, Criterion}; use raft::{Progress, ProgressSet}; diff --git a/benches/suites/raft.rs b/benches/suites/raft.rs index ee00d59b6..3d3fc5463 100644 --- a/benches/suites/raft.rs +++ b/benches/suites/raft.rs @@ -1,3 +1,5 @@ +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. + use crate::DEFAULT_RAFT_SETS; use criterion::Criterion; use raft::{storage::MemStorage, Config, Raft}; diff --git a/benches/suites/raw_node.rs b/benches/suites/raw_node.rs index 32e6a5833..83e69225a 100644 --- a/benches/suites/raw_node.rs +++ b/benches/suites/raw_node.rs @@ -1,3 +1,5 @@ +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. + use criterion::{BatchSize, Bencher, BenchmarkId, Criterion, Throughput}; use raft::eraftpb::{ConfState, Entry, Message, Snapshot, SnapshotMetadata}; use raft::{storage::MemStorage, Config, RawNode}; diff --git a/examples/five_mem_node/main.rs b/examples/five_mem_node/main.rs index a453d59c8..18c5ef3e7 100644 --- a/examples/five_mem_node/main.rs +++ b/examples/five_mem_node/main.rs @@ -1,15 +1,4 @@ -// Copyright 2019 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. #[macro_use] extern crate slog; diff --git a/examples/single_mem_node/main.rs b/examples/single_mem_node/main.rs index e4bb154b7..915fd1902 100644 --- a/examples/single_mem_node/main.rs +++ b/examples/single_mem_node/main.rs @@ -1,15 +1,4 @@ -// Copyright 2018 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. #[macro_use] extern crate slog; diff --git a/harness/src/interface.rs b/harness/src/interface.rs index 9f0a86e3c..c9cabbf2d 100644 --- a/harness/src/interface.rs +++ b/harness/src/interface.rs @@ -1,15 +1,4 @@ -// Copyright 2018 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 CoreOS, Inc. // diff --git a/harness/src/lib.rs b/harness/src/lib.rs index 6ae13fbf4..7d27a6cab 100644 --- a/harness/src/lib.rs +++ b/harness/src/lib.rs @@ -1,15 +1,4 @@ -// Copyright 2018 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 The etcd Authors // diff --git a/harness/src/network.rs b/harness/src/network.rs index 1598b3632..b7fa25fe9 100644 --- a/harness/src/network.rs +++ b/harness/src/network.rs @@ -1,15 +1,4 @@ -// Copyright 2018 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 CoreOS, Inc. // diff --git a/harness/tests/failpoints_cases/mod.rs b/harness/tests/failpoints_cases/mod.rs index 116d91a1c..7908775ef 100644 --- a/harness/tests/failpoints_cases/mod.rs +++ b/harness/tests/failpoints_cases/mod.rs @@ -1,15 +1,4 @@ -// Copyright 2018 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. use crate::test_util::*; use fail; diff --git a/harness/tests/integration_cases/mod.rs b/harness/tests/integration_cases/mod.rs index 5d102cbc2..f25b2ab15 100644 --- a/harness/tests/integration_cases/mod.rs +++ b/harness/tests/integration_cases/mod.rs @@ -1,15 +1,4 @@ -// Copyright 2017 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. mod test_raft; mod test_raft_flow_control; diff --git a/harness/tests/integration_cases/test_raft.rs b/harness/tests/integration_cases/test_raft.rs index 357c773eb..1f2b08774 100644 --- a/harness/tests/integration_cases/test_raft.rs +++ b/harness/tests/integration_cases/test_raft.rs @@ -1,15 +1,4 @@ -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 CoreOS, Inc. // diff --git a/harness/tests/integration_cases/test_raft_flow_control.rs b/harness/tests/integration_cases/test_raft_flow_control.rs index 0f03d6cff..d5171b391 100644 --- a/harness/tests/integration_cases/test_raft_flow_control.rs +++ b/harness/tests/integration_cases/test_raft_flow_control.rs @@ -1,15 +1,4 @@ -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 CoreOS, Inc. // diff --git a/harness/tests/integration_cases/test_raft_paper.rs b/harness/tests/integration_cases/test_raft_paper.rs index 4625512db..f0b4baf69 100644 --- a/harness/tests/integration_cases/test_raft_paper.rs +++ b/harness/tests/integration_cases/test_raft_paper.rs @@ -1,15 +1,4 @@ -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 CoreOS, Inc. // diff --git a/harness/tests/integration_cases/test_raft_snap.rs b/harness/tests/integration_cases/test_raft_snap.rs index 3d1931f40..adc768c1f 100644 --- a/harness/tests/integration_cases/test_raft_snap.rs +++ b/harness/tests/integration_cases/test_raft_snap.rs @@ -1,15 +1,4 @@ -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 CoreOS, Inc. // diff --git a/harness/tests/integration_cases/test_raw_node.rs b/harness/tests/integration_cases/test_raw_node.rs index 65ebb101c..220da6b66 100644 --- a/harness/tests/integration_cases/test_raw_node.rs +++ b/harness/tests/integration_cases/test_raw_node.rs @@ -1,15 +1,4 @@ -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 CoreOS, Inc. // diff --git a/harness/tests/test_util/mod.rs b/harness/tests/test_util/mod.rs index 663756de3..1c1e7fd21 100644 --- a/harness/tests/test_util/mod.rs +++ b/harness/tests/test_util/mod.rs @@ -1,15 +1,4 @@ -// Copyright 2018 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 CoreOS, Inc. // diff --git a/harness/tests/tests.rs b/harness/tests/tests.rs index 8feb67b8d..9b4bf90a2 100644 --- a/harness/tests/tests.rs +++ b/harness/tests/tests.rs @@ -1,15 +1,4 @@ -// Copyright 2017 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. #![cfg_attr(not(feature = "cargo-clippy"), allow(unknown_lints))] #![cfg_attr(feature = "failpoints", allow(dead_code, unused_imports))] diff --git a/src/config.rs b/src/config.rs index 44660915c..8d111a71c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,15 +1,4 @@ -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 The etcd Authors // diff --git a/src/errors.rs b/src/errors.rs index 569f98bf9..a9883351c 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,15 +1,4 @@ -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. use protobuf::ProtobufError; use std::error; diff --git a/src/lib.rs b/src/lib.rs index a3349a780..4310c207c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,15 +1,4 @@ -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 The etcd Authors // diff --git a/src/log_unstable.rs b/src/log_unstable.rs index 68a7e5480..96d423496 100644 --- a/src/log_unstable.rs +++ b/src/log_unstable.rs @@ -1,17 +1,6 @@ //! A representation of not-yet-committed log entries and state. -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 The etcd Authors // diff --git a/src/progress/inflights.rs b/src/progress/inflights.rs index c5c2bf670..860a815d0 100644 --- a/src/progress/inflights.rs +++ b/src/progress/inflights.rs @@ -1,15 +1,4 @@ -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 The etcd Authors // diff --git a/src/progress/mod.rs b/src/progress/mod.rs index 534632571..d4b4125b5 100644 --- a/src/progress/mod.rs +++ b/src/progress/mod.rs @@ -1,15 +1,4 @@ -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 The etcd Authors // diff --git a/src/progress/progress_set.rs b/src/progress/progress_set.rs index f61c15b56..bff202643 100644 --- a/src/progress/progress_set.rs +++ b/src/progress/progress_set.rs @@ -1,15 +1,4 @@ -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 The etcd Authors // diff --git a/src/raft.rs b/src/raft.rs index 343a9deef..34dec468d 100644 --- a/src/raft.rs +++ b/src/raft.rs @@ -1,15 +1,4 @@ -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 The etcd Authors // diff --git a/src/raft_log.rs b/src/raft_log.rs index c6559adc5..86abc7795 100644 --- a/src/raft_log.rs +++ b/src/raft_log.rs @@ -1,15 +1,4 @@ -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 The etcd Authors // diff --git a/src/raw_node.rs b/src/raw_node.rs index 1fb0773a9..67b0e4b9e 100644 --- a/src/raw_node.rs +++ b/src/raw_node.rs @@ -1,20 +1,4 @@ -//! The raw node of the raft module. -//! -//! This module contains the value types for the node and it's connection to other -//! nodes but not the raft consensus itself. Generally, you'll interact with the -//! RawNode first and use it to access the inner workings of the consensus protocol. -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 The etcd Authors // @@ -30,6 +14,12 @@ // See the License for the specific language governing permissions and // limitations under the License. +//! The raw node of the raft module. +//! +//! This module contains the value types for the node and it's connection to other +//! nodes but not the raft consensus itself. Generally, you'll interact with the +//! RawNode first and use it to access the inner workings of the consensus protocol. + use std::mem; use protobuf::Message as PbMessage; diff --git a/src/read_only.rs b/src/read_only.rs index 0f4679234..cc3e330da 100644 --- a/src/read_only.rs +++ b/src/read_only.rs @@ -1,15 +1,4 @@ -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2016 The etcd Authors // diff --git a/src/status.rs b/src/status.rs index 263d8f0bb..b525ac7cb 100644 --- a/src/status.rs +++ b/src/status.rs @@ -1,15 +1,4 @@ -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 The etcd Authors // diff --git a/src/storage.rs b/src/storage.rs index 62f47097b..c768b68a9 100644 --- a/src/storage.rs +++ b/src/storage.rs @@ -4,18 +4,7 @@ //! Custom implementations of this are normal and this is likely to be a key integration //! point for your distributed storage. -// Copyright 2016 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. // Copyright 2015 The etcd Authors // diff --git a/src/util.rs b/src/util.rs index 54926352e..4248643ee 100644 --- a/src/util.rs +++ b/src/util.rs @@ -1,18 +1,7 @@ //! This module contains a collection of various tools to use to manipulate //! and control messages and data associated with raft. -// Copyright 2017 PingCAP, Inc. -// -// 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, -// See the License for the specific language governing permissions and -// limitations under the License. +// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0. use slog::{OwnedKVList, Record, KV}; use std::fmt;