Skip to content

Commit

Permalink
[Backport main] Fix license header in core files (#2648) (#2798)
Browse files Browse the repository at this point in the history
Fix license header in core files (#2648)

Signed-off-by: Yury-Fridlyand <[email protected]>
  • Loading branch information
Yury-Fridlyand authored Dec 10, 2024
1 parent 4235888 commit 6cf780e
Show file tree
Hide file tree
Showing 33 changed files with 65 additions and 99 deletions.
5 changes: 2 additions & 3 deletions benchmarks/rust/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

#[cfg(not(target_env = "msvc"))]
use tikv_jemallocator::Jemalloc;

Expand Down
5 changes: 2 additions & 3 deletions csharp/lib/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use glide_core::client;
use glide_core::client::Client as GlideClient;
use glide_core::request_type::RequestType;
Expand Down
5 changes: 2 additions & 3 deletions glide-core/benches/connections_benchmark.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use criterion::{criterion_group, criterion_main, Criterion};
use futures::future::join_all;
use redis::{
Expand Down
5 changes: 2 additions & 3 deletions glide-core/benches/memory_benchmark.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use glide_core::{
client::Client,
connection_request::{ConnectionRequest, NodeAddress, TlsMode},
Expand Down
5 changes: 2 additions & 3 deletions glide-core/benches/rotating_buffer_benchmark.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use std::io::Write;

use bytes::BufMut;
Expand Down
5 changes: 2 additions & 3 deletions glide-core/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

#[cfg(feature = "socket-layer")]
fn build_protobuf() {
let customization_options = protobuf_codegen::Customize::default()
Expand Down
5 changes: 2 additions & 3 deletions glide-core/src/client/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

mod types;

use crate::cluster_scan_container::insert_cluster_scan_cursor;
Expand Down
5 changes: 2 additions & 3 deletions glide-core/src/client/reconnecting_connection.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use super::{NodeAddress, TlsMode};
use crate::retry_strategies::RetryStrategy;
use async_trait::async_trait;
Expand Down
5 changes: 2 additions & 3 deletions glide-core/src/client/standalone_client.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use super::get_redis_connection_info;
use super::reconnecting_connection::{ReconnectReason, ReconnectingConnection};
use super::{ConnectionRequest, NodeAddress, TlsMode};
Expand Down
5 changes: 2 additions & 3 deletions glide-core/src/client/types.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

#[allow(unused_imports)]
use logger_core::log_warn;
#[allow(unused_imports)]
Expand Down
5 changes: 2 additions & 3 deletions glide-core/src/client/value_conversion.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use redis::{
cluster_routing::Routable, from_owned_redis_value, Cmd, ErrorKind, RedisResult, Value,
};
Expand Down
5 changes: 2 additions & 3 deletions glide-core/src/cluster_scan_container.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use logger_core::log_debug;
use nanoid::nanoid;
use once_cell::sync::Lazy;
Expand Down
5 changes: 2 additions & 3 deletions glide-core/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use redis::RedisError;

#[repr(C)]
Expand Down
5 changes: 2 additions & 3 deletions glide-core/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

#[cfg(feature = "socket-layer")]
include!(concat!(env!("OUT_DIR"), "/protobuf/mod.rs"));
pub mod client;
Expand Down
5 changes: 2 additions & 3 deletions glide-core/src/request_type.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use redis::{cmd, Cmd};

#[cfg(feature = "socket-layer")]
Expand Down
5 changes: 2 additions & 3 deletions glide-core/src/retry_strategies.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use crate::client::ConnectionRetryStrategy;
use std::time::Duration;
use tokio_retry2::strategy::{jitter_range, ExponentialBackoff};
Expand Down
4 changes: 1 addition & 3 deletions glide-core/src/rotating_buffer.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
#[allow(unused_imports)]
use bytes::{Bytes, BytesMut};
use integer_encoding::VarInt;
Expand Down
5 changes: 2 additions & 3 deletions glide-core/src/scripts_container.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use bytes::BytesMut;
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
use logger_core::log_info;
use once_cell::sync::Lazy;
use sha1_smol::Sha1;
Expand Down
5 changes: 2 additions & 3 deletions glide-core/src/socket_listener.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use super::rotating_buffer::RotatingBuffer;
use crate::client::Client;
use crate::cluster_scan_container::get_cluster_scan_cursor;
Expand Down
5 changes: 2 additions & 3 deletions glide-core/tests/test_client.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

mod utilities;

#[macro_export]
Expand Down
5 changes: 2 additions & 3 deletions glide-core/tests/test_cluster_client.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

mod utilities;

#[cfg(test)]
Expand Down
5 changes: 2 additions & 3 deletions glide-core/tests/test_socket_listener.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

#![cfg(feature = "socket-layer")]
use glide_core::*;
use rsevents::{Awaitable, EventState, ManualResetEvent};
Expand Down
5 changes: 2 additions & 3 deletions glide-core/tests/test_standalone_client.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

mod utilities;

#[cfg(test)]
Expand Down
5 changes: 2 additions & 3 deletions glide-core/tests/utilities/cluster.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use super::{create_connection_request, ClusterMode, TestConfiguration};
use futures::future::{join_all, BoxFuture};
use futures::FutureExt;
Expand Down
5 changes: 2 additions & 3 deletions glide-core/tests/utilities/mocks.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use futures_intrusive::sync::ManualResetEvent;
use redis::{Cmd, ConnectionAddr, Value};
use std::collections::HashMap;
Expand Down
5 changes: 2 additions & 3 deletions glide-core/tests/utilities/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

#![allow(dead_code)]
use futures::Future;
use glide_core::{
Expand Down
5 changes: 2 additions & 3 deletions go/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/*
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

#![deny(unsafe_op_in_unsafe_fn)]
use glide_core::client::Client as GlideClient;
use glide_core::connection_request;
Expand Down
5 changes: 2 additions & 3 deletions java/src/errors.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use jni::{errors::Error as JNIError, JNIEnv};
use log::error;
use std::string::FromUtf8Error;
Expand Down
5 changes: 2 additions & 3 deletions java/src/ffi_test.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use crate::errors::{handle_errors, handle_panics, throw_java_exception, ExceptionType, FFIError};
use jni::{
objects::{JByteArray, JClass, JLongArray, JString},
Expand Down
5 changes: 2 additions & 3 deletions java/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use glide_core::start_socket_listener as start_socket_listener_core;

// Protocol constants to expose to Java.
Expand Down
5 changes: 2 additions & 3 deletions node/rust-client/build.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

extern crate napi_build;

fn main() {
Expand Down
5 changes: 2 additions & 3 deletions node/rust-client/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use glide_core::Telemetry;
use redis::GlideConnectionOptions;

Expand Down
5 changes: 2 additions & 3 deletions python/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/**
* Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
*/
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0

use bytes::Bytes;
use glide_core::client::FINISHED_SCAN_CURSOR;
use glide_core::start_socket_listener;
Expand Down

0 comments on commit 6cf780e

Please sign in to comment.