Skip to content

Commit 8defd77

Browse files
committed
Bring license headers inline with TiKV
Signed-off-by: Nick Cameron <nrc@ncameron.org>
1 parent f482b53 commit 8defd77

File tree

25 files changed

+27
-288
lines changed

25 files changed

+27
-288
lines changed

examples/common/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0.
2+
13
use clap::{crate_version, App, Arg};
24
use std::path::PathBuf;
35

examples/raw.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
// Copyright 2018 The TiKV Project Authors
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// See the License for the specific language governing permissions and
12-
// limitations under the License.
1+
// Copyright 2018 TiKV Project Authors. Licensed under Apache-2.0.
132

143
mod common;
154

examples/transaction.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
// Copyright 2018 The TiKV Project Authors
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// See the License for the specific language governing permissions and
12-
// limitations under the License.
1+
// Copyright 2018 TiKV Project Authors. Licensed under Apache-2.0.
132

143
mod common;
154

src/config.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
// Copyright 2019 The TiKV Project Authors
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// See the License for the specific language governing permissions and
12-
// limitations under the License.
1+
// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0.
132

143
use serde_derive::*;
154
use std::{path::PathBuf, time::Duration};

src/errors.rs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
1-
// Copyright 2018 The TiKV Project Authors
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// See the License for the specific language governing permissions and
12-
// limitations under the License.
1+
// Copyright 2018 TiKV Project Authors. Licensed under Apache-2.0.
2+
133
use failure::{Backtrace, Context, Fail};
144
use grpcio;
155
use std::fmt::{self, Display};

src/kv.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
// Copyright 2019 The TiKV Project Authors
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// See the License for the specific language governing permissions and
12-
// limitations under the License.
1+
// Copyright 2019 TiKV Project Authors. Licensed under Apache-2.0.
132

143
use std::ops::{
154
Bound, Deref, DerefMut, Range, RangeFrom, RangeFull, RangeInclusive, RangeTo, RangeToInclusive,

src/lib.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
// Copyright 2018 The TiKV Project Authors
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// See the License for the specific language governing permissions and
12-
// limitations under the License.
1+
// Copyright 2018 TiKV Project Authors. Licensed under Apache-2.0.
132

143
// Long and nested future chains can quickly result in large generic types.
154
#![type_length_limit = "16777216"]

src/raw.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
// Copyright 2018 The TiKV Project Authors
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// See the License for the specific language governing permissions and
12-
// limitations under the License.
1+
// Copyright 2018 TiKV Project Authors. Licensed under Apache-2.0.
132

143
//! Raw related functionality.
154
//!

src/rpc/client.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
// Copyright 2018 The TiKV Project Authors
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// See the License for the specific language governing permissions and
12-
// limitations under the License.
1+
// Copyright 2018 TiKV Project Authors. Licensed under Apache-2.0.
132

143
// TODO: Remove this when txn is done.
154
#![allow(dead_code)]

src/rpc/context.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,4 @@
1-
// Copyright 2018 The TiKV Project Authors
2-
//
3-
// Licensed under the Apache License, Version 2.0 (the "License");
4-
// you may not use this file except in compliance with the License.
5-
// You may obtain a copy of the License at
6-
//
7-
// http://www.apache.org/licenses/LICENSE-2.0
8-
//
9-
// Unless required by applicable law or agreed to in writing, software
10-
// distributed under the License is distributed on an "AS IS" BASIS,
11-
// See the License for the specific language governing permissions and
12-
// limitations under the License.
1+
// Copyright 2018 TiKV Project Authors. Licensed under Apache-2.0.
132

143
use std::time::Instant;
154

0 commit comments

Comments
 (0)